[frogr] Present a confirmation dialog when saving to an existing file



commit 3b0f071b500dde3371901a53d033c5af28e49456
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Thu Nov 8 13:34:50 2012 +0100

    Present a confirmation dialog when saving to an existing file

 src/frogr-main-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 0a4f183..bf158df 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -987,6 +987,7 @@ _save_project_as_dialog (FrogrMainView *self)
                                         NULL);
 
   gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), _("Untitled Project"));
+  gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE);
   gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dialog), FALSE);
   gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), TRUE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]