[gimp] Bug 568445 – Closing the Toolbox causes the program to close
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Bug 568445 – Closing the Toolbox causes the program to close
- Date: Sun, 2 Aug 2009 12:55:33 +0000 (UTC)
commit f026c52478bf59c70ebbbac5e3a9b68859af2596
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Aug 2 14:57:46 2009 +0200
Bug 568445 â?? Closing the Toolbox causes the program to close
Instead of invoking the file-quit action when closing the toolbox, use
gimp_dialog_factory_hide_dialog().
app/widgets/gimptoolbox.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index c242cd7..cf82a5c 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -318,11 +318,7 @@ static gboolean
gimp_toolbox_delete_event (GtkWidget *widget,
GdkEventAny *event)
{
- /* Activate the action instead of simply calling gimp_exit(),
- * so that the quit action's sensitivity is taken into account.
- */
- gimp_ui_manager_activate_action (GIMP_IMAGE_DOCK (widget)->ui_manager,
- "file", "file-quit");
+ gimp_dialog_factory_hide_dialog (widget);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]