summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2011-03-20 22:42:12 +0100
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-10-08 18:22:24 +0300
commit5c7403cc66003ff1949916dfdd287dbc622dfd5e (patch)
tree5715972b14dac7c1d1e00db8b65e6314d7e95faa
parent341d0945db4bea8e28df4ebf1b569bad7999fe80 (diff)
downloadmetacity-5c7403cc66003ff1949916dfdd287dbc622dfd5e.tar.gz
core: Allow retrieving the theme variant via core_get()
To associate frames with the correct style variant, the UI will need access to the window's theme variant property. https://bugzilla.gnome.org/show_bug.cgi?id=645355
-rw-r--r--src/core/core.c3
-rw-r--r--src/include/core.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 6b62ec40..5b56ab61 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -198,6 +198,9 @@ meta_core_get (Display *xdisplay,
case META_CORE_GET_FRAME_HEIGHT:
*((gint*)answer) = window->frame->rect.height;
break;
+ case META_CORE_GET_THEME_VARIANT:
+ *((char**)answer) = window->gtk_theme_variant;
+ break;
case META_CORE_GET_SCREEN_WIDTH:
*((gint*)answer) = window->screen->rect.width;
break;
diff --git a/src/include/core.h b/src/include/core.h
index b2b3d08e..6cc41a6d 100644
--- a/src/include/core.h
+++ b/src/include/core.h
@@ -46,6 +46,7 @@ typedef enum
META_CORE_GET_FRAME_Y,
META_CORE_GET_FRAME_WIDTH,
META_CORE_GET_FRAME_HEIGHT,
+ META_CORE_GET_THEME_VARIANT,
META_CORE_GET_SCREEN_WIDTH,
META_CORE_GET_SCREEN_HEIGHT,
} MetaCoreGetType;