diff options
author | Florian Müllner <fmuellner@gnome.org> | 2014-09-26 00:30:29 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-04 15:33:34 +0300 |
commit | de292b3f70d4296ba4d603fee9d95fe3028759fa (patch) | |
tree | 0510a85396d03bbd7af27611c29f5e05db122c4c | |
parent | 9a935911569a8a1c6f7c798d96f9697bb70031a9 (diff) | |
download | metacity-de292b3f70d4296ba4d603fee9d95fe3028759fa.tar.gz |
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
NOTE: Updated for metacity.
-rw-r--r-- | src/core/core.c | 6 | ||||
-rw-r--r-- | src/include/core.h | 5 | ||||
-rw-r--r-- | src/ui/frames.c | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/core/core.c b/src/core/core.c index 7153c1f8..e3d19e02 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -812,3 +812,9 @@ meta_invalidate_default_icons (void) g_slist_free (windows); } +void +meta_retheme_all (void) +{ + if (meta_get_display ()) + meta_display_retheme_all (); +} diff --git a/src/include/core.h b/src/include/core.h index 6cc41a6d..f88f6cf9 100644 --- a/src/include/core.h +++ b/src/include/core.h @@ -203,9 +203,6 @@ void meta_core_set_screen_cursor (Display *xdisplay, void meta_core_increment_event_serial (Display *display); void meta_invalidate_default_icons (void); +void meta_retheme_all (void); #endif - - - - diff --git a/src/ui/frames.c b/src/ui/frames.c index d30e221a..fbd09564 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -463,6 +463,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); } |