toolitemgroup: Properly remove internal child widget

We now need to use gtk_widget_unparent and can't just destroy it.
This commit is contained in:
Timm Bäder 2017-01-19 14:37:51 +01:00
parent 4bd2a9bca9
commit 0f2e043c3d

View File

@ -540,7 +540,7 @@ gtk_tool_item_group_dispose (GObject *object)
g_clear_object (&priv->settings);
if (priv->header)
gtk_widget_destroy (priv->header);
gtk_widget_unparent (priv->header);
g_clear_object (&priv->header);
G_OBJECT_CLASS (gtk_tool_item_group_parent_class)->dispose (object);