app: some formatting cleanup in GimpImageWindow
This commit is contained in:
@ -1798,8 +1798,7 @@ 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)
|
||||
{
|
||||
@ -1808,8 +1807,11 @@ gimp_image_window_page_reordered (GtkNotebook *notebook,
|
||||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user