diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-12 17:39:50 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-12 17:39:50 +0000 |
commit | dd3a8cd122ca7fc3bf80a2bf394dae8b2f36934e (patch) | |
tree | 00d75cdd4aaf2977a5434140923e96ac453d22fa /gtk/gtkicontheme.c | |
parent | 89e079e10b00c5714c6d4f1aa7c7fad518eef112 (diff) | |
download | gtk+-dd3a8cd122ca7fc3bf80a2bf394dae8b2f36934e.tar.gz |
Only broadcast _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
2005-12-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
_GTK_LOAD_ICONTHEMES if we detect a real theme change, not
upon initial theme load. (#323876, Peter Lund)
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 2e9ef1f3e0..885df5381a 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1158,6 +1158,7 @@ ensure_valid_themes (GtkIconTheme *icon_theme) { GtkIconThemePrivate *priv = icon_theme->priv; GTimeVal tv; + gboolean was_valid = priv->themes_valid; _gtk_icon_theme_ensure_builtin_cache (); @@ -1173,7 +1174,7 @@ ensure_valid_themes (GtkIconTheme *icon_theme) { load_themes (icon_theme); - if (!priv->check_reload && priv->screen) + if (!priv->check_reload && was_valid && priv->screen) { static GdkAtom atom_iconthemes = GDK_NONE; GdkEvent *event = gdk_event_new (GDK_CLIENT_EVENT); |