aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2007-04-25 03:45:19 +0800
committerDiego Escalante Urrelo <diegoe@src.gnome.org>2007-04-25 03:45:19 +0800
commit2697544c10462aefaf7091c25d5bbbb3de90ab01 (patch)
tree118151f18944b1d03eb1f3384da85382b0a9f0f4 /src
parent63024526868d1241f9edefc2e8cc3112d6a010d3 (diff)
downloadgsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar.gz
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar.bz2
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar.lz
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar.xz
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.tar.zst
gsoc2013-epiphany-2697544c10462aefaf7091c25d5bbbb3de90ab01.zip
Avoid opening nautilus if downloads are done to Desktop. This re-fixes bug
2007-04-24 Diego Escalante Urrelo <diegoe@gnome.org> * src/popup-commands.c: * lib/ephy-file-helpers.c: Avoid opening nautilus if downloads are done to Desktop. This re-fixes bug #383698. svn path=/trunk/; revision=7014
Diffstat (limited to 'src')
-rw-r--r--src/popup-commands.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 27f872e3a..4cc6ed4ce 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -175,32 +175,16 @@ save_property_url_completed_cb (EphyEmbedPersist *persist)
EPHY_EMBED_PERSIST_ASK_DESTINATION))
{
const char *dest;
- char *desktop_dir;
guint32 user_time;
- GnomeVFSURI *parent, *uri, *desktop;
user_time = ephy_embed_persist_get_user_time (persist);
dest = ephy_embed_persist_get_dest (persist);
- g_return_if_fail (dest != NULL);
-
- desktop_dir = ephy_file_desktop_dir ();
-
- /* Where are we going to save */
- uri = gnome_vfs_uri_new (dest);
- desktop = gnome_vfs_uri_new (desktop_dir);
- g_return_if_fail (uri != NULL);
-
- parent = gnome_vfs_uri_get_parent (uri);
+ g_return_if_fail (dest != NULL);
- /* If save location is the desktop, don't open it */
- if (!gnome_vfs_uri_equal (desktop, parent))
- ephy_file_browse_to (dest, user_time);
+ /* If save location is the desktop, nautilus will not open */
+ ephy_file_browse_to (dest, user_time);
- g_free (desktop_dir);
- gnome_vfs_uri_unref (uri);
- gnome_vfs_uri_unref (parent);
- gnome_vfs_uri_unref (desktop);
}
}