Added public prototype for meta_window_is_ancestor_of_transient()

http://bugzilla.gnome.org/show_bug.cgi?id=590439
This commit is contained in:
Tomas Frydrych
2009-08-04 08:32:36 +01:00
parent 897814a153
commit 2222cb8fbf
3 changed files with 13 additions and 2 deletions

View File

@ -574,8 +574,6 @@ void meta_window_free_delete_dialog (MetaWindow *window);
void meta_window_foreach_transient (MetaWindow *window,
MetaWindowForeachFunc func,
void *data);
gboolean meta_window_is_ancestor_of_transient (MetaWindow *window,
MetaWindow *transient);
void meta_window_foreach_ancestor (MetaWindow *window,
MetaWindowForeachFunc func,
void *data);

View File

@ -8114,6 +8114,17 @@ find_ancestor_func (MetaWindow *window,
return TRUE;
}
/**
* meta_window_is_ancestor_of_transient:
* @window: a #MetaWindow
* @transient: a #MetaWindow
*
* The function determines whether @window is an ancestor of @transient; it does
* so by traversing the @transient's ancestors until it either locates @window
* or reaches an ancestor that is not transient.
*
* Return Value: (transfer none): %TRUE if window is an ancestor of transient.
*/
gboolean
meta_window_is_ancestor_of_transient (MetaWindow *window,
MetaWindow *transient)