From 0e10dacc87c726c7ae0c25b0968aed5600204ca0 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 6 Feb 2024 15:10:32 +0100 Subject: [PATCH] libgimpwidgets: properly set the icon theme even at initialization. Without this, when creating the new config folder for the first time (update from 2.10 to 2.99/3.0), if say "Legacy" icon theme was set, it would not show on the first run, though it would show on the second run. Now it shows directly on the first run. --- libgimpwidgets/gimpicons.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libgimpwidgets/gimpicons.c b/libgimpwidgets/gimpicons.c index bb9feac3c6..c8f1513776 100644 --- a/libgimpwidgets/gimpicons.c +++ b/libgimpwidgets/gimpicons.c @@ -208,10 +208,6 @@ gimp_icons_set_icon_theme (GFile *path) g_object_unref (icon_theme_path); icon_theme_path = g_object_ref (path); } - - g_object_set (gtk_settings_get_for_screen (gdk_screen_get_default ()), - "gtk-icon-theme-name", icon_theme_name, - NULL); } else { @@ -219,6 +215,10 @@ gimp_icons_set_icon_theme (GFile *path) icon_theme_path = g_object_ref (path); } + g_object_set (gtk_settings_get_for_screen (gdk_screen_get_default ()), + "gtk-icon-theme-name", icon_theme_name, + NULL); + success = TRUE; }