From 0a9187a6e9c3852f6f82e2d04c6da205f1983dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 25 May 2014 16:57:15 +0200 Subject: [PATCH] window: Add accessor method for gtk_theme_variant This is useful information for UI associated with a window, so add a corresponding method. https://bugzilla.gnome.org/show_bug.cgi?id=730752 --- src/core/window.c | 12 ++++++++++++ src/meta/window.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 1a1fca7de..ed577972a 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7071,6 +7071,18 @@ meta_window_get_wm_class_instance (MetaWindow *window) return window->res_name; } +/** + * meta_window_get_gtk_theme_variant: + * @window: a #MetaWindow + * + * Return value: (transfer none): the theme variant or %NULL + **/ +const char * +meta_window_get_gtk_theme_variant (MetaWindow *window) +{ + return window->gtk_theme_variant; +} + /** * meta_window_get_gtk_application_id: * @window: a #MetaWindow diff --git a/src/meta/window.h b/src/meta/window.h index b1b68c660..1a60278cb 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -140,6 +140,7 @@ const char * meta_window_get_wm_class (MetaWindow *window); const char * meta_window_get_wm_class_instance (MetaWindow *window); gboolean meta_window_showing_on_its_workspace (MetaWindow *window); +const char * meta_window_get_gtk_theme_variant (MetaWindow *window); const char * meta_window_get_gtk_application_id (MetaWindow *window); const char * meta_window_get_gtk_unique_bus_name (MetaWindow *window); const char * meta_window_get_gtk_application_object_path (MetaWindow *window);