[gimp/soc-2011-seamless-clone2] Bug 686544 - Opening new image window doesn't restore docks



commit 6d899aa225457c89ad7327a8cb65cdabd0e7001a
Author: Michael Natterer <mitch gimp org>
Date:   Wed Feb 27 23:26:49 2013 +0100

    Bug 686544 - Opening new image window doesn't restore docks
    
    Call gimp_dialog_factory_show_with_display() in gimp_display_new(), we
    otherwise do this only when the ICONIFIED state of an image window
    changes.

 app/display/gimpdisplay.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index d4dd26f..880b9bd 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -34,6 +34,8 @@
 #include "core/gimpimage.h"
 #include "core/gimpprogress.h"
 
+#include "widgets/gimpdialogfactory.h"
+
 #include "tools/gimptool.h"
 #include "tools/tool_manager.h"
 
@@ -453,6 +455,11 @@ gimp_display_new (Gimp              *gimp,
   gimp_image_window_add_shell (window, shell);
   gimp_display_shell_present (shell);
 
+  /* make sure the docks are visible, in case all other image windows
+   * are iconified, see bug #686544.
+   */
+  gimp_dialog_factory_show_with_display (dialog_factory);
+
   g_signal_connect (gimp_display_shell_get_statusbar (shell), "cancel",
                     G_CALLBACK (gimp_display_progress_canceled),
                     display);


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