forked from AuroraMiddleware/gtk
IconTheme: Clear caches when reloading theme
When we're reloading the theme in ensure_valid_themes (due to noticing that a theme dir has changed) we need to also clear the icon cache as it will not be valid for the new theme. We already do this in do_theme_change(), but ensure_valid_themes() was missing this. https://bugzilla.gnome.org/show_bug.cgi?id=702598
This commit is contained in:
parent
280d606cd4
commit
1ee36713fe
@ -1399,7 +1399,10 @@ ensure_valid_themes (GtkIconTheme *icon_theme)
|
||||
|
||||
if (ABS (tv.tv_sec - priv->last_stat_time) > 5 &&
|
||||
rescan_themes (icon_theme))
|
||||
blow_themes (icon_theme);
|
||||
{
|
||||
g_hash_table_remove_all (priv->info_cache);
|
||||
blow_themes (icon_theme);
|
||||
}
|
||||
}
|
||||
|
||||
if (!priv->themes_valid)
|
||||
|
Loading…
Reference in New Issue
Block a user