[mutter/wip/gtk-theming: 10/20] 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: 10/20] Properly update on GTK+ theme changes
- Date: Fri, 31 Oct 2014 15:22:33 +0000 (UTC)
commit 3ab375cf689fafb2320566674775e90e2c143043
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.
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 e603af8..034f73e 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -497,3 +497,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 7d121cb..bf27052 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]