unfullscreen the window before doing anything else.

2008-04-11  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
	unfullscreen the window before doing anything else.


svn path=/trunk/; revision=25466
This commit is contained in:
Michael Natterer 2008-04-11 14:42:43 +00:00 committed by Michael Natterer
parent c57d42c32a
commit 01a35bddfb
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-04-11 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
unfullscreen the window before doing anything else.
2008-04-11 Michael Natterer <mitch@gimp.org> 2008-04-11 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-appearance.c * app/display/gimpdisplayshell-appearance.c

View File

@ -1253,12 +1253,16 @@ gimp_display_shell_empty (GimpDisplayShell *shell)
g_return_if_fail (GIMP_IS_DISPLAY (shell->display)); g_return_if_fail (GIMP_IS_DISPLAY (shell->display));
g_return_if_fail (shell->display->image == NULL); g_return_if_fail (shell->display->image == NULL);
gtk_window_unfullscreen (GTK_WINDOW (shell));
/* get the NIW size before adding the display to the dialog factory /* get the NIW size before adding the display to the dialog factory
* so the window's current size doesn't affect the stored session * so the window's current size doesn't affect the stored session
* info entry. * info entry.
*/ */
session_info = gimp_dialog_factory_find_session_info (shell->display_factory, session_info =
gimp_dialog_factory_find_session_info (shell->display_factory,
"gimp-empty-image-window"); "gimp-empty-image-window");
if (session_info) if (session_info)
{ {
width = session_info->width; width = session_info->width;