mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
a5cc3759b3
commit
0e10dacc87
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue