[gtk+/gtk-3-14] notebook: Make reordering safe for tab disappearance
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] notebook: Make reordering safe for tab disappearance
- Date: Sat, 31 Jan 2015 19:27:37 +0000 (UTC)
commit 7b9a8958bef22c9764197781a3f6a53d5b39f1ca
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 29 23:48:06 2015 -0500
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.
gtk/gtknotebook.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 12d7d80..07b03e7 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -5045,6 +5045,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]