mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
6eda784cf0
commit
26c4c21e13
@ -496,3 +496,10 @@ meta_invalidate_default_icons (void)
|
||||
{
|
||||
/* XXX: Actually invalidate the icons when they're used. */
|
||||
}
|
||||
|
||||
void
|
||||
meta_retheme_all (void)
|
||||
{
|
||||
if (meta_get_display ())
|
||||
meta_display_retheme_all ();
|
||||
}
|
||||
|
@ -168,5 +168,6 @@ void meta_core_set_screen_cursor (Display *xdisplay,
|
||||
MetaCursor cursor);
|
||||
|
||||
void meta_invalidate_default_icons (void);
|
||||
void meta_retheme_all (void);
|
||||
|
||||
#endif
|
||||
|
@ -372,6 +372,8 @@ meta_frames_style_updated (GtkWidget *widget)
|
||||
g_hash_table_foreach (frames->frames,
|
||||
reattach_style_func, frames);
|
||||
|
||||
meta_retheme_all ();
|
||||
|
||||
GTK_WIDGET_CLASS (meta_frames_parent_class)->style_updated (widget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user