[mutter] core: Allow retrieving the theme variant via core_get()



commit 0cdac78bd59b1eab6e5d1b5bb6fadcb65e765c7b
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Mar 20 22:42:12 2011 +0100

    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

 src/core/core.c |    3 +++
 src/core/core.h |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/core.c b/src/core/core.c
index 5434572..6a6355a 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -146,6 +146,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/core/core.h b/src/core/core.h
index a2feb23..9a8af76 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -48,6 +48,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;



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