Add meta_window_get_title() method

Update meta_window_get_title() as per comments
This commit is contained in:
Davyd Madeley 2009-06-10 11:02:14 +08:00
parent 29257f107a
commit dfb0e4f57b
2 changed files with 15 additions and 0 deletions

View File

@ -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)
{

View File

@ -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