From a1b651fdca5ff9358882b1dfa3bb0a0d78e5e06a Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Tue, 1 Sep 2015 17:43:32 +0200 Subject: [PATCH] Use default filename in save-copy dialog. The filename of the currently displayed image is now used as default filename in the save-copy dialog. This makes file copying more comfortable. --- src/main_window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main_window.c b/src/main_window.c index 30ebba2..c743b29 100644 --- a/src/main_window.c +++ b/src/main_window.c @@ -3152,6 +3152,8 @@ cb_rstto_main_window_save_copy (GtkWidget *widget, RsttoMainWindow *window) GTK_STOCK_SAVE, GTK_RESPONSE_OK, NULL); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); + gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), + rstto_file_get_display_name (r_file)); response = gtk_dialog_run(GTK_DIALOG(dialog)); if(response == GTK_RESPONSE_OK) -- 1.9.1