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
This commit is contained in:
Florian Müllner 2014-05-25 16:57:15 +02:00
parent 31db32e826
commit 0a9187a6e9
2 changed files with 13 additions and 0 deletions

View File

@ -7071,6 +7071,18 @@ meta_window_get_wm_class_instance (MetaWindow *window)
return window->res_name; 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: * meta_window_get_gtk_application_id:
* @window: a #MetaWindow * @window: a #MetaWindow

View File

@ -140,6 +140,7 @@ const char * meta_window_get_wm_class (MetaWindow *window);
const char * meta_window_get_wm_class_instance (MetaWindow *window); const char * meta_window_get_wm_class_instance (MetaWindow *window);
gboolean meta_window_showing_on_its_workspace (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_application_id (MetaWindow *window);
const char * meta_window_get_gtk_unique_bus_name (MetaWindow *window); const char * meta_window_get_gtk_unique_bus_name (MetaWindow *window);
const char * meta_window_get_gtk_application_object_path (MetaWindow *window); const char * meta_window_get_gtk_application_object_path (MetaWindow *window);