From 26c4c21e1333d62c0406881c4125aa8b2625a037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 26 Sep 2014 00:30:29 +0200 Subject: [PATCH] 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 --- src/core/core.c | 7 +++++++ src/core/core.h | 1 + src/ui/frames.c | 2 ++ 3 files changed, 10 insertions(+) diff --git a/src/core/core.c b/src/core/core.c index e31f7e367..ae81362d8 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -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 (); +} diff --git a/src/core/core.h b/src/core/core.h index 0e84ad137..460adbeab 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -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 diff --git a/src/ui/frames.c b/src/ui/frames.c index f6d0094e1..5ca16ae5b 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -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); }