mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
Add meta_window_get_title() method
Update meta_window_get_title() as per comments
This commit is contained in:
parent
29257f107a
commit
dfb0e4f57b
@ -8735,6 +8735,20 @@ meta_window_get_role (MetaWindow *window)
|
||||
return window->role;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_title:
|
||||
* @window: a #MetaWindow
|
||||
*
|
||||
* Returns the current title of the window.
|
||||
*/
|
||||
const char *
|
||||
meta_window_get_title (MetaWindow *window)
|
||||
{
|
||||
g_return_val_if_fail (META_IS_WINDOW (window), NULL);
|
||||
|
||||
return window->title;
|
||||
}
|
||||
|
||||
MetaStackLayer
|
||||
meta_window_get_layer (MetaWindow *window)
|
||||
{
|
||||
|
@ -108,5 +108,6 @@ void meta_window_unmaximize (MetaWindow *window,
|
||||
MetaMaximizeFlags directions);
|
||||
void meta_window_minimize (MetaWindow *window);
|
||||
void meta_window_unminimize (MetaWindow *window);
|
||||
const char *meta_window_get_title (MetaWindow *window);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user