[gimp] Show the shell after it has been associated with its image window, not before



commit 2762100885579437016c10b6e9894ca5f3b01768
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 25 12:08:03 2009 +0200

    Show the shell after it has been associated with its image window, not before
    
    ...so the image window's session management has a chance to set
    the window's size.

 app/display/gimpdisplay.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index 47a2aac..d900702 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -384,7 +384,6 @@ gimp_display_new (Gimp              *gimp,
   display->shell = gimp_display_shell_new (display, unit, scale,
                                            menu_factory, popup_manager,
                                            display_factory);
-  gtk_widget_show (display->shell);
 
   /* FIXME image window */
   gimp_image_window_set_active_display (GIMP_IMAGE_WINDOW (display->shell),
@@ -395,6 +394,8 @@ gimp_display_new (Gimp              *gimp,
                     G_CALLBACK (gimp_display_progress_canceled),
                     display);
 
+  gtk_widget_show (display->shell);
+
   /* add the display to the list */
   gimp_container_add (gimp->displays, GIMP_OBJECT (display));
 



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