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.
This commit is contained in:
Michael Natterer 2013-02-27 23:26:49 +01:00
parent 01eba3df27
commit 97af52c465
1 changed files with 7 additions and 0 deletions

View File

@ -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);