[mutter/wip/gtk-theming: 9/19] Properly update on GTK+ theme changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/gtk-theming: 9/19] Properly update on GTK+ theme changes
- Date: Mon, 29 Dec 2014 15:55:07 +0000 (UTC)
commit 7deb4f5aca3305c3a2f007fb36deccd4eec5a4ed
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
src/core/core.c | 7 +++++++
src/core/core.h | 1 +
src/ui/frames.c | 2 ++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/core/core.c b/src/core/core.c
index e31f7e3..ae81362 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 0e84ad1..460adbe 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 f6d0094..5ca16ae 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]