Commit 7d8063da authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

return silently instead of warning if the window hasn't been realized.

2005-05-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
	return silently instead of warning if the window hasn't been
	realized. This happens as part of the setup process if
	"resize-windows-on-zoom" is selected in the prefs.
parent 32730788
2005-05-11 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
return silently instead of warning if the window hasn't been
realized. This happens as part of the setup process if
"resize-windows-on-zoom" is selected in the prefs.
2005-05-11 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontrollerinfo.[ch]: added API to set an event
......
......@@ -1426,7 +1426,10 @@ gimp_display_shell_shrink_wrap (GimpDisplayShell *shell)
gint border_x, border_y;
gboolean resize = FALSE;
g_return_if_fail (GTK_WIDGET_REALIZED (shell));
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
if (! GTK_WIDGET_REALIZED (shell))
return;
widget = GTK_WIDGET (shell);
screen = gtk_widget_get_screen (widget);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment