aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-dialog-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-20 15:11:31 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-20 15:11:31 +0800
commite3bc9c823718c769c9667b9f707fdabf0d8f0697 (patch)
treec3ba81a3e0baaf7f04563033d26c7fafe4d114b4 /e-util/e-dialog-utils.c
parent37f9a781d6ef656ddfca1359ee524a4c3fa9b531 (diff)
downloadgsoc2013-evolution-e3bc9c823718c769c9667b9f707fdabf0d8f0697.tar.gz
gsoc2013-evolution-e3bc9c823718c769c9667b9f707fdabf0d8f0697.tar.zst
gsoc2013-evolution-e3bc9c823718c769c9667b9f707fdabf0d8f0697.zip
2007-08-20 mcrha Fix for bug #367760
svn path=/trunk/; revision=34042
Diffstat (limited to 'e-util/e-dialog-utils.c')
-rw-r--r--e-util/e-dialog-utils.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/e-util/e-dialog-utils.c b/e-util/e-dialog-utils.c
index a65f946ace..b6626aed37 100644
--- a/e-util/e-dialog-utils.c
+++ b/e-util/e-dialog-utils.c
@@ -350,7 +350,7 @@ e_file_dialog_save_folder (const char *title)
* e_file_get_save_filesel:
* @parent: parent window
* @title: dialog title
- * @name: filename
+ * @name: filename; already in a proper form (suitable for file system)
* @action: action for dialog
*
* Creates a save dialog, using the saved directory from gconf. The dialog has
@@ -360,7 +360,7 @@ GtkWidget *
e_file_get_save_filesel (GtkWidget *parent, const char *title, const char *name, GtkFileChooserAction action)
{
GtkWidget *filesel;
- char *realname, *uri;
+ char *uri;
filesel = gtk_file_chooser_dialog_new (title,
NULL,
@@ -376,18 +376,11 @@ e_file_get_save_filesel (GtkWidget *parent, const char *title, const char *name,
uri = e_file_get_save_path();
- if (name && name[0]) {
- realname = gnome_vfs_escape_string (name);
- } else {
- realname = NULL;
- }
-
gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (filesel), uri);
- if (realname)
- gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (filesel), realname);
+ if (name && name[0])
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (filesel), name);
- g_free (realname);
g_free (uri);
return filesel;