[metacity] Properly update on GTK+ theme changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] Properly update on GTK+ theme changes
- Date: Sun, 5 Apr 2015 20:45:18 +0000 (UTC)
commit de292b3f70d4296ba4d603fee9d95fe3028759fa
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 d30e221..fbd0956 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]