]> git.tdb.fi Git - ext/subsurface.git/commitdiff
More intuitive label for "not saving" when exiting
authorDirk Hohndel <dirk@hohndel.org>
Tue, 13 Dec 2011 22:34:42 +0000 (14:34 -0800)
committerDirk Hohndel <dirk@hohndel.org>
Tue, 13 Dec 2011 23:02:17 +0000 (15:02 -0800)
Right now the options are "Save" and "Cancel". I wrote that code and it
always bugged me - "Cancel" could mean that I want to cancel the the whole
operation, i.e. that I don't want to quit after all. Showing "Save" and
"No" seems much more logical.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
gtk-gui.c

index dce537232fdbd9ba81ca5dfb69b332f28d269228..eae080808c457612c290dac870c6a78cca53ad5d 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -162,7 +162,7 @@ static void ask_save_changes()
        dialog = gtk_dialog_new_with_buttons("Save Changes?",
                GTK_WINDOW(main_window), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
-               GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+               GTK_STOCK_NO, GTK_RESPONSE_NO,
                NULL);
        content = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
        label = gtk_label_new ("You have unsaved changes\nWould you like to save those before exiting the program?");