Added meta_window_get_role().

This commit is contained in:
Tomas Frydrych 2009-01-12 12:30:31 +00:00
parent 822e125492
commit ec0562550a
2 changed files with 11 additions and 0 deletions

View File

@ -8665,3 +8665,12 @@ meta_window_set_compositor_private (MetaWindow *window, void *priv)
window->compositor_private = priv; window->compositor_private = priv;
} }
const char *
meta_window_get_role (MetaWindow *window)
{
if (!window)
return NULL;
return window->role;
}

View File

@ -95,4 +95,6 @@ void meta_window_change_workspace_by_index (MetaWindow *window,
void *meta_window_get_compositor_private (MetaWindow *window); void *meta_window_get_compositor_private (MetaWindow *window);
void meta_window_set_compositor_private (MetaWindow *window, void *priv); void meta_window_set_compositor_private (MetaWindow *window, void *priv);
void meta_window_configure_notify (MetaWindow *window, XConfigureEvent *event); void meta_window_configure_notify (MetaWindow *window, XConfigureEvent *event);
const char *meta_window_get_role (MetaWindow *window);
#endif #endif