From 6f535cb264390189df7a92cd6655e32f5cd3c1db Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Aug 2006 17:44:09 +0000 Subject: [PATCH] Run the reset_styles idle at a priority higher than size negotiation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-08-15 Matthias Clasen * gtk/gtkicontheme.c (do_theme_change): Run the reset_styles idle at a priority higher than size negotiation. (#350517, Søren Sandmann) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ gtk/gtkicontheme.c | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4288501d24..bba27499e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-08-15 Matthias Clasen + * gtk/gtkicontheme.c (do_theme_change): Run the reset_styles + idle at a priority higher than size negotiation. (#350517, + Søren Sandmann) + * gtk/gtkfilesystem.c (gtk_file_info_render_icon) (gtk_file_system_volume_render_icon): Do better fallbacks if the icon theme does not have icons. (#345666, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4288501d24..bba27499e3 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2006-08-15 Matthias Clasen + * gtk/gtkicontheme.c (do_theme_change): Run the reset_styles + idle at a priority higher than size negotiation. (#350517, + Søren Sandmann) + * gtk/gtkfilesystem.c (gtk_file_info_render_icon) (gtk_file_system_volume_render_icon): Do better fallbacks if the icon theme does not have icons. (#345666, diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index ebfc282a46..8eb75cf8e4 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -40,6 +40,7 @@ #include "gtkiconcache.h" #include "gtkbuiltincache.h" #include "gtkintl.h" +#include "gtkmain.h" #include "gtksettings.h" #include "gtkprivate.h" #include "gtkalias.h" @@ -618,7 +619,8 @@ do_theme_change (GtkIconTheme *icon_theme) if (!priv->reset_styles_idle) priv->reset_styles_idle = - g_idle_add (reset_styles_idle, icon_theme); + g_idle_add_full (GTK_PRIORITY_RESIZE + 2, + reset_styles_idle, icon_theme, NULL); } static void