Commit 3281d1a2 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

notebook: Don't crash when dnd'ing tabs out
parent eca1b3cb
......@@ -3060,9 +3060,18 @@ gtk_notebook_stop_reorder (GtkNotebook *notebook)
priv->has_scrolled = FALSE;
priv->during_reorder = FALSE;
hide_drag_window (notebook, priv, page);
g_object_ref (page->tab_label);
gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (page->tab_label)), page->tab_label);
gtk_css_node_set_parent (gtk_widget_get_css_node (page->tab_label),
gtk_css_gadget_get_node (page->gadget));
gtk_widget_set_parent (page->tab_label, GTK_WIDGET (notebook));
g_object_unref (page->tab_label);
priv->operation = DRAG_OPERATION_NONE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment