Properly update on GTK+ theme changes

With geometry information picked up from GTK+, we need to queue a
resize on GTK+ theme changes to correctly update to the new geometry.

https://bugzilla.gnome.org/show_bug.cgi?id=741917
This commit is contained in:
Florian Müllner 2014-09-26 00:30:29 +02:00 committed by Jasper St. Pierre
parent 6eda784cf0
commit 26c4c21e13
3 changed files with 10 additions and 0 deletions

View File

@ -496,3 +496,10 @@ meta_invalidate_default_icons (void)
{ {
/* XXX: Actually invalidate the icons when they're used. */ /* XXX: Actually invalidate the icons when they're used. */
} }
void
meta_retheme_all (void)
{
if (meta_get_display ())
meta_display_retheme_all ();
}

View File

@ -168,5 +168,6 @@ void meta_core_set_screen_cursor (Display *xdisplay,
MetaCursor cursor); MetaCursor cursor);
void meta_invalidate_default_icons (void); void meta_invalidate_default_icons (void);
void meta_retheme_all (void);
#endif #endif

View File

@ -372,6 +372,8 @@ meta_frames_style_updated (GtkWidget *widget)
g_hash_table_foreach (frames->frames, g_hash_table_foreach (frames->frames,
reattach_style_func, frames); reattach_style_func, frames);
meta_retheme_all ();
GTK_WIDGET_CLASS (meta_frames_parent_class)->style_updated (widget); GTK_WIDGET_CLASS (meta_frames_parent_class)->style_updated (widget);
} }