create the empty display before the other windows.

2008-03-20  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_restore_after_callback): create the empty
	display before the other windows.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): center
	the empty window and create additional image windows under the
	mouse cursor. Just an experiment ...

svn path=/trunk/; revision=25143
This commit is contained in:
Sven Neumann 2008-03-20 15:22:57 +00:00 committed by Sven Neumann
parent 13e3e81e8c
commit 2b43fd7535
3 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2008-03-20 Sven Neumann <sven@gimp.org>
* app/gui/gui.c (gui_restore_after_callback): create the empty
display before the other windows.
* app/display/gimpdisplayshell.c (gimp_display_shell_new): center
the empty window and create additional image windows under the
mouse cursor. Just an experiment ...
2008-03-20 Sven Neumann <sven@gimp.org>
* app/config/gimpguiconfig.c: changed default values for

View File

@ -668,8 +668,10 @@ gimp_display_shell_new (GimpDisplay *display,
/* the toplevel shell */
shell = g_object_new (GIMP_TYPE_DISPLAY_SHELL,
/* "gravity", GDK_GRAVITY_CENTER, */
"unit", unit,
"window-position", (display->image ?
GTK_WIN_POS_MOUSE :
GTK_WIN_POS_CENTER),
"unit", unit,
NULL);
shell->display = display;

View File

@ -525,15 +525,15 @@ gui_restore_after_callback (Gimp *gimp,
color_history_restore (gimp);
/* create the empty display */
gimp_create_display (gimp, NULL, GIMP_UNIT_PIXEL, 1.0);
gui_dbus_service_init (gimp);
if (gui_config->restore_session)
session_restore (gimp);
dialogs_show_toolbox ();
gui_dbus_service_init (gimp);
/* create the empty display */
gimp_create_display (gimp, NULL, GIMP_UNIT_PIXEL, 1.0);
}
static gboolean