r14580 - gnucash/trunk - Add warning close_last_window and show it when user tries to close the
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Jul 29 21:25:13 EDT 2006
Author: andi5
Date: 2006-07-29 21:25:12 -0400 (Sat, 29 Jul 2006)
New Revision: 14580
Trac: http://svn.gnucash.org/trac/changeset/14580
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/gnome/schemas/apps_gnucash_warnings.schemas.in
Log:
Add warning close_last_window and show it when user tries to close the
last GnuCash window. Fixes #338865.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-07-30 01:18:43 UTC (rev 14579)
+++ gnucash/trunk/ChangeLog 2006-07-30 01:25:12 UTC (rev 14580)
@@ -1,5 +1,10 @@
2006-07-30 Andreas Köhler <andi5.py at gmx.net>
+ * src/gnome/schemas/apps_gnucash_warnings.schemas.in:
+ * src/gnome-utils/gnc-main-window.c: Add warning close_last_window
+ and show it when user tries to close the last GnuCash window.
+ Fixes #338865.
+
* src/gnome-utils/gnc-gnome-utils.c:
* src/gnome-utils/glade/preferences.glade:
* src/gnome/schemas/apps_gnucash_general.schemas.in: Add new
Modified: gnucash/trunk/src/gnome/schemas/apps_gnucash_warnings.schemas.in
===================================================================
--- gnucash/trunk/src/gnome/schemas/apps_gnucash_warnings.schemas.in 2006-07-30 01:18:43 UTC (rev 14579)
+++ gnucash/trunk/src/gnome/schemas/apps_gnucash_warnings.schemas.in 2006-07-30 01:25:12 UTC (rev 14580)
@@ -20,6 +20,22 @@
</schema>
<schema>
+ <key>/schemas/apps/gnucash/general/warnings/close_last_window</key>
+ <applyto>/apps/gnucash/general/warnings/permanent/close_last_window</applyto>
+ <applyto>/apps/gnucash/general/warnings/temporary/close_last_window</applyto>
+ <owner>gnucash</owner>
+ <type>int</type>
+ <default>0</default>
+ <locale name="C">
+ <short>Exit GnuCash</short>
+ <long>
+ This dialog is presented when you attempt to close the last GnuCash
+ window.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/gnucash/general/warnings/mark_split_unreconciled</key>
<applyto>/apps/gnucash/general/warnings/permanent/mark_split_unreconciled</applyto>
<applyto>/apps/gnucash/general/warnings/temporary/mark_split_unreconciled</applyto>
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-07-30 01:18:43 UTC (rev 14579)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-07-30 01:25:12 UTC (rev 14580)
@@ -1036,7 +1036,7 @@
GTK_STOCK_QUIT, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
- response = gtk_dialog_run (GTK_DIALOG (dialog));
+ response = gnc_dialog_run (GTK_DIALOG (dialog), "close_last_window");
gtk_widget_destroy(dialog);
if (response == GTK_RESPONSE_OK) {
More information about the gnucash-changes
mailing list