MetaWindowActor: Add meta_window_actor_is_destroyed

Add a meta_window_actor_is_destroyed method which gets
whether the X window that the actor was displaying has been destroyed.

https://bugzilla.gnome.org/show_bug.cgi?id=639853
This commit is contained in:
Adel Gadllah 2011-01-18 19:34:15 +01:00
parent aa482e6d4f
commit 8181454af5
2 changed files with 14 additions and 0 deletions

View File

@ -883,6 +883,19 @@ meta_window_actor_get_texture (MetaWindowActor *self)
return self->priv->actor; return self->priv->actor;
} }
/**
* meta_window_actor_is_destroyed:
*
* Gets whether the X window that the actor was displaying has been destroyed
*
* Return value: %TRUE when the window is destroyed, otherwise %FALSE
*/
gboolean
meta_window_actor_is_destroyed (MetaWindowActor *self)
{
return self->priv->disposed;
}
gboolean gboolean
meta_window_actor_is_override_redirect (MetaWindowActor *self) meta_window_actor_is_override_redirect (MetaWindowActor *self)
{ {

View File

@ -65,5 +65,6 @@ ClutterActor * meta_window_actor_get_texture (MetaWindowActor *self
gboolean meta_window_actor_is_override_redirect (MetaWindowActor *self); gboolean meta_window_actor_is_override_redirect (MetaWindowActor *self);
const char * meta_window_actor_get_description (MetaWindowActor *self); const char * meta_window_actor_get_description (MetaWindowActor *self);
gboolean meta_window_actor_showing_on_its_workspace (MetaWindowActor *self); gboolean meta_window_actor_showing_on_its_workspace (MetaWindowActor *self);
gboolean meta_window_actor_is_destroyed (MetaWindowActor *self);
#endif /* META_WINDOW_ACTOR_H */ #endif /* META_WINDOW_ACTOR_H */