[Xfce4-commits] [apps/ristretto] 03/03: Use default filename in save-copy dialog.

noreply at xfce.org noreply at xfce.org
Sun Jan 24 04:10:51 CET 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository apps/ristretto.

commit 2b09353675c005de920a40e1bbb8e4801cb3d997
Author: Marc Schink <xfce-dev at marcschink.de>
Date:   Tue Sep 1 17:43:32 2015 +0200

    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.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/main_window.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main_window.c b/src/main_window.c
index 432113d..87170da 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -3176,6 +3176,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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list