[gimp] app: some formatting cleanup in GimpImageWindow
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: some formatting cleanup in GimpImageWindow
- Date: Thu, 13 Mar 2014 21:45:46 +0000 (UTC)
commit a894f2a689b6da348c15b121045bcd8e8fe4785f
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 13 22:37:37 2014 +0100
app: some formatting cleanup in GimpImageWindow
app/display/gimpimagewindow.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 733cf2c..ec81ffe 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -1443,7 +1443,7 @@ static GtkWidget *
gimp_image_window_get_first_dockbook (GimpDockColumns *columns)
{
GList *dock_iter;
-
+
for (dock_iter = gimp_dock_columns_get_docks (columns);
dock_iter;
dock_iter = g_list_next (dock_iter))
@@ -1798,18 +1798,20 @@ 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));
+ gint index = g_list_index (private->shells, 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);
+ * 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]