mirror of
https://github.com/brl/mutter.git
synced 2025-07-17 23:57:18 +00:00
core: Remove useless meta_invalidate_default_icons implementation
This code was supposed to refresh our default icons when the theme changed, but it actually was a no-op, since the default icons are cached in a static variable in MetaUI. I'm not sure the fact that the fallback icons don't update when the theme changes is an important enough use case to keep working, but I'm keeping the skeleton function there in case somebody wants to actually fix it properly.
This commit is contained in:
@ -495,24 +495,5 @@ meta_core_set_screen_cursor (Display *xdisplay,
|
||||
void
|
||||
meta_invalidate_default_icons (void)
|
||||
{
|
||||
MetaDisplay *display = meta_get_display ();
|
||||
GSList *windows;
|
||||
GSList *l;
|
||||
|
||||
if (display == NULL)
|
||||
return; /* We can validly be called before the display is opened. */
|
||||
|
||||
windows = meta_display_list_windows (display, META_LIST_DEFAULT);
|
||||
for (l = windows; l != NULL; l = l->next)
|
||||
{
|
||||
MetaWindow *window = (MetaWindow*)l->data;
|
||||
|
||||
if (window->icon_cache.origin == USING_FALLBACK_ICON)
|
||||
{
|
||||
meta_icon_cache_free (&(window->icon_cache));
|
||||
meta_window_update_icon_now (window);
|
||||
}
|
||||
}
|
||||
|
||||
g_slist_free (windows);
|
||||
/* XXX: Actually invalidate the icons when they're used. */
|
||||
}
|
||||
|
Reference in New Issue
Block a user