aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-utils.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-05 15:41:18 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-05 15:41:18 +0800
commit34b76e16a93ada1c21369fba8dee4ce9e752848d (patch)
tree5c30c21f032d734db9734c8930eeec633a8e2191 /embed/ephy-embed-utils.c
parent7ae9c02441b4d75c6e686870e6c214ce7f0a823d (diff)
downloadgsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar.gz
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar.bz2
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar.lz
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar.xz
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.tar.zst
gsoc2013-epiphany-34b76e16a93ada1c21369fba8dee4ce9e752848d.zip
Actually add the ask for dest pref, it was using the wrong key.
2003-06-05 Marco Pesenti Gritti <marco@it.gnome.org> * data/epiphany.schemas.in: * embed/ephy-embed-popup.c: (embed_popup_download_link_cmd): * embed/ephy-embed-utils.c: (ephy_embed_utils_save): Actually add the ask for dest pref, it was using the wrong key. * embed/mozilla/FilePicker.cpp: * embed/mozilla/mozilla-embed-single.cpp: Return directory also on cancel. * lib/ephy-prefs.h: * src/popup-commands.c: (popup_cmd_download_link): Persist directory also on cancel.
Diffstat (limited to 'embed/ephy-embed-utils.c')
-rw-r--r--embed/ephy-embed-utils.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 57ef3beb4..4e68964b9 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -140,28 +140,30 @@ ephy_embed_utils_save (GtkWidget *window,
NULL, NULL);
}
- if (ret == G_OK)
- {
- uri = gnome_vfs_uri_new (retPath);
- g_return_if_fail (uri != NULL);
- retDir = gnome_vfs_uri_extract_dirname (uri);
+ uri = gnome_vfs_uri_new (retPath);
+ g_return_if_fail (uri != NULL);
+
+ retDir = gnome_vfs_uri_extract_dirname (uri);
+ if (ret == G_OK)
+ {
if (with_content) flags |= EMBED_PERSIST_SAVE_CONTENT;
+
ephy_embed_persist_set_flags (persist, flags);
ephy_embed_persist_set_dest (persist, retPath);
ephy_embed_persist_save (persist);
+ }
- /* set default save dir */
- eel_gconf_set_string (default_dir_pref,
- retDir);
+ /* set default save dir */
+ eel_gconf_set_string (default_dir_pref,
+ retDir);
- g_free (retDir);
- gnome_vfs_uri_unref (uri);
- g_free (retPath);
- }
+ g_free (retDir);
+ gnome_vfs_uri_unref (uri);
+ g_free (retPath);
g_object_unref (G_OBJECT(persist));