aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-12-24 13:07:38 +0000
committerThomas White <taw@bitwiz.org.uk>2011-12-24 13:07:38 +0000
commit62820a0d40d44fda48067cf16c894290be889afa (patch)
treec5f595575cf69cad1705f9b0b1e00f2cd79c7aa5
parent2d050584bcf6e14c91d264388f69da3cc3b17c67 (diff)
Overwrite confirmation when saving
-rw-r--r--src/mainwindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index f82db7b..6afd548 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -225,6 +225,8 @@ static gint saveas_sig(GtkWidget *widget, struct presentation *p)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(d),
+ TRUE);
g_signal_connect(G_OBJECT(d), "response",
G_CALLBACK(saveas_response_sig), p);
@@ -280,6 +282,8 @@ static gint save_ss_sig(GtkWidget *widget, struct presentation *p)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(d),
+ TRUE);
g_signal_connect(G_OBJECT(d), "response",
G_CALLBACK(save_ss_response_sig), p);