gimp r25143 - in trunk: . app/display app/gui



Author: neo
Date: Thu Mar 20 15:22:57 2008
New Revision: 25143
URL: http://svn.gnome.org/viewvc/gimp?rev=25143&view=rev

Log:
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 ...


Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell.c
   trunk/app/gui/gui.c

Modified: trunk/app/display/gimpdisplayshell.c
==============================================================================
--- trunk/app/display/gimpdisplayshell.c	(original)
+++ trunk/app/display/gimpdisplayshell.c	Thu Mar 20 15:22:57 2008
@@ -668,8 +668,10 @@
 
   /*  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;

Modified: trunk/app/gui/gui.c
==============================================================================
--- trunk/app/gui/gui.c	(original)
+++ trunk/app/gui/gui.c	Thu Mar 20 15:22:57 2008
@@ -525,15 +525,15 @@
 
   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



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