Never shrink the empty display when filling it, only grow:

2008-03-23  Michael Natterer  <mitch@gimp.org>

	Never shrink the empty display when filling it, only grow:

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-scale.[ch]: add "gboolean
	grow_only" parameters to shrink_wrap() APIs which restricts
	resizing of the window to growing.

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_displaY_shell_scale_resize): remove boolean "redisplay"
	parameter because is was always passed as TRUE. Add boolean
	"grow_only" instead and pass it on to shrink_wrap()

	* app/actions/view-commands.c
	* app/display/gimpdisplayshell-handlers.c: pass grow_only = FALSE.

	* app/display/gimpdisplayshell.c (gimp_display_shell_idle_fill):
	pass grow_only = TRUE.


svn path=/trunk/; revision=25178
This commit is contained in:
Michael Natterer
2008-03-23 15:16:44 +00:00
committed by Michael Natterer
parent 54d306e8ea
commit f8e5aa31bd
7 changed files with 53 additions and 18 deletions

View File

@ -423,7 +423,7 @@ gimp_display_shell_size_changed_handler (GimpImage *image,
{
gimp_display_shell_scale_resize (shell,
shell->display->config->resize_windows_on_resize,
TRUE);
FALSE);
}
static void