Center the image after connecting to it. This is required if the image we

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.

svn path=/trunk/; revision=26356
This commit is contained in:
Martin Nordholts 2008-08-03 17:57:13 +00:00 committed by Martin Nordholts
parent 6c48f2b601
commit 6f8f412fd4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
2008-08-03 Martin Nordholts <martinn@svn.gnome.org>
Further work for completing bug #362915 that makes changes to the

View File

@ -1204,6 +1204,9 @@ gimp_display_shell_new (GimpDisplay *display,
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
{