[dia] Cancel exiting if the dialog is closed by the Window Manager
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia] Cancel exiting if the dialog is closed by the Window Manager
- Date: Sun, 3 May 2009 11:50:03 -0400 (EDT)
commit b2ad6ced9bcdd8f2ed9b691aa2a69270bb896d71
Author: Hans Breuer <hans breuer org>
Date: Sun May 3 17:46:33 2009 +0200
Cancel exiting if the dialog is closed by the Window Manager
---
app/exit_dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/app/exit_dialog.c b/app/exit_dialog.c
index 93cb5af..073a6e4 100644
--- a/app/exit_dialog.c
+++ b/app/exit_dialog.c
@@ -219,6 +219,10 @@ exit_dialog_run (GtkWidget * dialog,
case EXIT_DIALOG_EXIT_NO_SAVE:
*items = NULL;
return result;
+ case EXIT_DIALOG_EXIT_SAVE_SELECTED :
+ break;
+ default : /* e.g. if closed by window manager button */
+ return EXIT_DIALOG_EXIT_CANCEL;
}
count = get_selected_items (dialog, items);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]