gimp r26356 - in trunk: . app/display



Author: martinn
Date: Sun Aug  3 17:57:13 2008
New Revision: 26356
URL: http://svn.gnome.org/viewvc/gimp?rev=26356&view=rev

Log:
2008-08-03  Martin Nordholts  <martinn svn gnome org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): Center
	the image after connecting to it. This is required if the image we
	connect to is smaller than the initial canvas size.


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

Modified: trunk/app/display/gimpdisplayshell.c
==============================================================================
--- trunk/app/display/gimpdisplayshell.c	(original)
+++ trunk/app/display/gimpdisplayshell.c	Sun Aug  3 17:57:13 2008
@@ -1204,6 +1204,9 @@
   if (display->image)
     {
       gimp_display_shell_connect (shell);
+
+      /* after connecting to the image we want to center it */
+      gimp_display_shell_center_image_on_next_size_allocate (shell);
     }
   else
     {



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