[metacity/wip/gtk-theme: 33/35] Properly update on GTK+ theme changes



commit 87e07ac5ee2f2545ca816fcb65ab91d138c44d5f
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 26 00:30:29 2014 +0200

    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.

 src/core/core.c    |    6 ++++++
 src/include/core.h |    5 +----
 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 7153c1f..e3d19e0 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 6cc41a6..f88f6cf 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 c0adb2f..d3d18e3 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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]