[gtk+/gestures: 168/173] popover: Hide widget first when disposing
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 168/173] popover: Hide widget first when disposing
- Date: Fri, 16 May 2014 17:14:30 +0000 (UTC)
commit 0766b3e0167cf01021aa2915c57d3a5e7c73b339
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 16 17:38:28 2014 +0200
popover: Hide widget first when disposing
In order to ensure invariants are kept.
gtk/gtkpopover.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 7210622..15910a7 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -235,6 +235,8 @@ gtk_popover_dispose (GObject *object)
GtkPopover *popover = GTK_POPOVER (object);
GtkPopoverPrivate *priv = popover->priv;
+ gtk_widget_set_visible (GTK_WIDGET (object), FALSE);
+
if (priv->window)
_gtk_window_remove_popover (priv->window, GTK_WIDGET (object));
@@ -249,7 +251,6 @@ gtk_popover_dispose (GObject *object)
priv->prev_focus_widget = NULL;
}
- gtk_widget_set_visible (GTK_WIDGET (object), FALSE);
G_OBJECT_CLASS (gtk_popover_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]