diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-01-29 23:48:06 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-01-30 09:39:26 -0500 |
commit | 3a05d9b5a0dde696fe6fb68fd2ae3bffbc36b20c (patch) | |
tree | f9e18bc665506faeb6187a0e749b75783931209a | |
parent | c160ba0696dc5ffaece04941cf24344bf76bab65 (diff) | |
download | gtk+-3a05d9b5a0dde696fe6fb68fd2ae3bffbc36b20c.tar.gz |
notebook: Make reordering safe for tab disappearance
If the dragged tab is removed during reordering, we need to
call gtk_notebook_stop_reorder(), to clean up and bring the
remaining tabs back in order.
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 61ca58022c..2bf9e74a65 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5047,6 +5047,8 @@ gtk_notebook_real_remove (GtkNotebook *notebook, priv->cur_page = NULL; if (next_list && !destroying) gtk_notebook_switch_page (notebook, GTK_NOTEBOOK_PAGE (next_list)); + if (priv->operation == DRAG_OPERATION_REORDER) + gtk_notebook_stop_reorder (notebook); } if (priv->detached_tab == list->data) |