[clutter-gtk] embed: unmap: check stage exists before unmapping
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] embed: unmap: check stage exists before unmapping
- Date: Sun, 26 Jun 2011 17:38:46 +0000 (UTC)
commit 0ec642a24c25742167d42dd6552c12b8923ea4bc
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date: Sun Jun 26 18:56:09 2011 +0200
embed: unmap: check stage exists before unmapping
https://bugzilla.gnome.org/show_bug.cgi?id=653435
clutter-gtk/gtk-clutter-embed.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index f98a0e7..9eaa0a8 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -369,7 +369,10 @@ gtk_clutter_embed_unmap (GtkWidget *widget)
{
GtkClutterEmbedPrivate *priv = GTK_CLUTTER_EMBED (widget)->priv;
- clutter_actor_unmap (priv->stage);
+ /* gtk may emit an unmap signal after dispose, so it's possible we may
+ * have already disposed priv->stage. */
+ if (priv->stage != NULL)
+ clutter_actor_unmap (priv->stage);
GTK_WIDGET_CLASS (gtk_clutter_embed_parent_class)->unmap (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]