[gimp] app: always use the first display's image window as single-window



commit e91890f659fc79441f11f1e88d97c9e86090c276
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 8 21:38:53 2011 +0200

    app: always use the first display's image window as single-window
    
    so the tabs are in the order of the global display list which is the
    order of the image menu items and their ALT+number shortcuts.

 app/gui/gimpuiconfigurer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/gui/gimpuiconfigurer.c b/app/gui/gimpuiconfigurer.c
index 215d1f6..0b988de 100644
--- a/app/gui/gimpuiconfigurer.c
+++ b/app/gui/gimpuiconfigurer.c
@@ -439,8 +439,8 @@ gimp_ui_configurer_configure_for_multi_window (GimpUIConfigurer *ui_configurer)
 static GimpImageWindow *
 gimp_ui_configurer_get_uber_window (GimpUIConfigurer *ui_configurer)
 {
-  GimpContext      *context      = gimp_get_user_context (ui_configurer->p->gimp);
-  GimpDisplay      *display      = gimp_context_get_display (context);
+  Gimp             *gimp         = ui_configurer->p->gimp;
+  GimpDisplay      *display      = gimp_get_display_iter (gimp)->data;
   GimpDisplayShell *shell        = gimp_display_get_shell (display);
   GimpImageWindow  *image_window = gimp_display_shell_get_window (shell);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]