summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2010-12-03 14:09:35 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:56 +0100
commitf261d56da32418ee6aa534a3fc08c76bb5a67f11 (patch)
tree8405c28610b748930b6d50c657be45184d75e39c /gtk/gtkstylecontext.c
parent3b3307b946ed3fb7e3669ed98ec154d4b161bb1d (diff)
downloadgtk+-f261d56da32418ee6aa534a3fc08c76bb5a67f11.tar.gz
GtkStyleContext: invalidate icon caches when resetting widgets
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index d4f5db3dd8..b8d8c992e7 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -33,6 +33,7 @@
#include "gtksymboliccolor.h"
#include "gtkanimationdescription.h"
#include "gtktimeline.h"
+#include "gtkiconfactory.h"
/**
* SECTION:gtkstylecontext
@@ -1332,6 +1333,8 @@ gtk_style_context_reset_widgets (GdkScreen *screen)
{
GList *list, *toplevels;
+ _gtk_icon_set_invalidate_caches ();
+
toplevels = gtk_window_list_toplevels ();
g_list_foreach (toplevels, (GFunc) g_object_ref, NULL);