summaryrefslogtreecommitdiff
path: root/gtk/gtkassistant.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-29 19:21:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-29 19:21:47 -0400
commit32de7edf1dec5528b8d02cb765b2c76471f321c6 (patch)
tree7301bc9ebc58dca8d10fdd792064dfcd36356eed /gtk/gtkassistant.c
parentffaaa1e66eef00d1dbaf28ae4ab9e4cdd74f1bae (diff)
downloadgtk+-32de7edf1dec5528b8d02cb765b2c76471f321c6.tar.gz
Assistant: Fix page rmoval
We have to remove the page itself from the intermediate box first, before removing the box from the notebook. Otherwise, reffing the page to keep it alive is ineffective: the box gets destroyed, and that destruction recurses over the page. This fixes the problem in https://bugzilla.gnome.org/show_bug.cgi?id=756385
Diffstat (limited to 'gtk/gtkassistant.c')
-rw-r--r--gtk/gtkassistant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index b1d400d1c1..8813b4b93c 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1472,8 +1472,8 @@ gtk_assistant_remove (GtkContainer *container,
assistant->priv->content != NULL &&
gtk_widget_get_parent (box) == assistant->priv->content)
{
- container = (GtkContainer *) assistant->priv->content;
- gtk_container_remove (container, box);
+ gtk_container_remove (GTK_CONTAINER (box), page);
+ gtk_container_remove (GTK_CONTAINER (assistant->priv->content), box);
}
}