summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-01-15 18:54:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-01-15 18:54:05 -0500
commitcf172a5873ce89a115f39dd9cbb5c49e2545b3db (patch)
tree2505603dd6aeab2ac493b52c2bd621fd735e91a2 /gtk/gtknotebook.c
parent261abe55c46ae68a27f4098e8d587e0bd3c4d7ce (diff)
downloadgtk+-cf172a5873ce89a115f39dd9cbb5c49e2545b3db.tar.gz
Revert "GtkNotebook: fix crash when DnD tabs between windows"
This reverts commit eeb9de80e17d1915d877c98eabd9a9a1f4423e9c.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 231893f74c..32cdee71ee 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4958,10 +4958,7 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
gtk_widget_unparent (page->child);
tab_label = page->tab_label;
- /* Do not unparent the tab label if it's already in another
- hierarchy. It means we are in the middle of a DnD and it's
- already taken care of. */
- if (tab_label && NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, page))
+ if (tab_label)
{
g_object_ref (tab_label);
gtk_notebook_remove_tab_label (notebook, page);