aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-09-20 19:17:54 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-20 19:17:54 +0800
commitb93121c147570503f42ce2d1d619296b26081d59 (patch)
tree3a0d846c2d897d711ee3ae22d6584101d298b095 /embed/mozilla/mozilla-embed-single.cpp
parent68616208eeeee369e62c9256fc9aba5dbe139e3e (diff)
downloadgsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar.gz
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar.bz2
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar.lz
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar.xz
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.tar.zst
gsoc2013-epiphany-b93121c147570503f42ce2d1d619296b26081d59.zip
Fix directory selection persistence [bug #122780].
2003-09-20 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-utils.c: (ephy_embed_utils_save): * embed/mozilla/mozilla-embed-single.cpp: * src/window-commands.c: (window_cmd_file_open): Fix directory selection persistence [bug #122780].
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index b4f5fc2f8..8bbfc43c1 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -38,6 +38,7 @@
#include <time.h>
#include <libgnome/gnome-i18n.h>
+#include <libgnomevfs/gnome-vfs-utils.h>
#include <string.h>
#include <nsICacheService.h>
#include <nsCOMPtr.h>
@@ -1017,15 +1018,14 @@ impl_show_file_picker (EphyEmbedSingle *shell,
GFilePicker *filePicker = new GFilePicker (file_formats);
- /* FIXME sane path: expand tilde ... */
- expanded_directory = g_strdup (directory);
+ expanded_directory = gnome_vfs_expand_initial_tilde (directory);
/* make sure the directory exists, and use the home directory
* otherwise */
if (!expanded_directory ||
!g_file_test (expanded_directory, G_FILE_TEST_IS_DIR))
{
- if (expanded_directory) g_free (expanded_directory);
+ g_free (expanded_directory);
expanded_directory = g_strdup (g_get_home_dir());
}