diff --git a/ChangeLog b/ChangeLog index 1372ad4c38..637e644946 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-07-30 Andreas Köhler + * 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 diff --git a/src/gnome-utils/gnc-main-window.c b/src/gnome-utils/gnc-main-window.c index 21b5544434..88e112949a 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -1036,7 +1036,7 @@ gnc_main_window_delete_event (GtkWidget *window, 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) { diff --git a/src/gnome/schemas/apps_gnucash_warnings.schemas.in b/src/gnome/schemas/apps_gnucash_warnings.schemas.in index bedc533d61..44777fca17 100644 --- a/src/gnome/schemas/apps_gnucash_warnings.schemas.in +++ b/src/gnome/schemas/apps_gnucash_warnings.schemas.in @@ -19,6 +19,22 @@ + + /schemas/apps/gnucash/general/warnings/close_last_window + /apps/gnucash/general/warnings/permanent/close_last_window + /apps/gnucash/general/warnings/temporary/close_last_window + gnucash + int + 0 + + Exit GnuCash + + This dialog is presented when you attempt to close the last GnuCash + window. + + + + /schemas/apps/gnucash/general/warnings/mark_split_unreconciled /apps/gnucash/general/warnings/permanent/mark_split_unreconciled