invoke the quit action instead of calling gimp_exit() so its sensitivity

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

	* app/display/gimpdisplayshell-close.c (gimp_display_shell_close):
	invoke the quit action instead of calling gimp_exit() so its
	sensitivity is taken into account.


svn path=/trunk/; revision=25157
This commit is contained in:
Michael Natterer 2008-03-21 18:02:42 +00:00 committed by Michael Natterer
parent f63a7153ef
commit 1db77c5a04
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-21 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-close.c (gimp_display_shell_close):
invoke the quit action instead of calling gimp_exit() so its
sensitivity is taken into account.
2008-03-21 Michael Natterer <mitch@gimp.org>
Remove the toolbox menu:

View File

@ -100,7 +100,11 @@ gimp_display_shell_close (GimpDisplayShell *shell,
}
else
{
gimp_exit (shell->display->gimp, FALSE);
/* Activate the action instead of simply calling gimp_exit(), so
* the quit action's sensitivity is taken into account.
*/
gimp_ui_manager_activate_action (shell->menubar_manager,
"file", "file-quit");
}
}