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:
parent
31db32e826
commit
0a9187a6e9
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user