[gimp/gimp-2-8] Bug 686544 - Opening new image window doesn't restore docks
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 686544 - Opening new image window doesn't restore docks
- Date: Wed, 27 Feb 2013 22:30:09 +0000 (UTC)
commit 0d47f71d13525014ca8750fe790668508f071587
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.
(cherry picked from commit 97af52c465b5a6b01773d7b568e231adf4f33cfa)
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 533237d..c3a2b74 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]