[evince] shell: Don't set the current folder while saving a file



commit 55c1f8231bdab143a1d90f4bd598852d746b08e0
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Aug 29 15:59:55 2011 +0200

    shell: Don't set the current folder while saving a file
    
    Fixes bug #655514.

 shell/ev-window.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e0888eb..526cf4e 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2900,7 +2900,6 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window)
 	GtkWidget *fc;
 	gchar *base_name;
 	GFile *file;
-	const gchar *folder;
 
 	fc = gtk_file_chooser_dialog_new (
 		_("Save a Copy"),
@@ -2921,10 +2920,6 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window)
 	file = g_file_new_for_uri (ev_window->priv->uri);
 	base_name = g_file_get_basename (file);
 	gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (fc), base_name);
-
-	folder = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
-	gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (fc),
-					     folder ? folder : g_get_home_dir ());
 	g_object_unref (file);
 	g_free (base_name);
 



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