[gimp] Bug 701090: reorder the shells too when tabs are reordered.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 701090: reorder the shells too when tabs are reordered.
- Date: Thu, 29 Aug 2013 06:56:42 +0000 (UTC)
commit 4c8399ec0b93ce6e798755935177f57619ed8f58
Author: Jehan <jehan girinstud io>
Date: Sun Jul 7 22:36:49 2013 +0900
Bug 701090: reorder the shells too when tabs are reordered.
This allows to not lose the tab order after we come back from multi-window mode.
app/display/gimpimagewindow.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index a171010..17c2f6d 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -1737,9 +1737,19 @@ gimp_image_window_page_reordered (GtkNotebook *notebook,
GimpImageWindowPrivate *private = GIMP_IMAGE_WINDOW_GET_PRIVATE (window);
GimpContainer *displays = private->gimp->displays;
+ gint index = g_list_index (private->shells, GIMP_DISPLAY_SHELL (widget));
+
+ if (index != page_num)
+ {
+ private->shells = g_list_remove (private->shells, widget);
+ private->shells = g_list_insert (private->shells, widget, page_num);
+ }
+
/* We need to reorder the displays as well in order to update the
* numbered accelerators (alt-1, alt-2, etc.). */
gimp_container_reorder (displays, GIMP_OBJECT (GIMP_DISPLAY_SHELL (widget)->display), page_num);
+
+ gtk_notebook_reorder_child (notebook, widget, page_num);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]