From 7f7826a163f31bb662247ac4486dca0d01df35f6 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Thu, 20 Jan 2011 01:42:12 -0500 Subject: ephy-file-helpers: allow desktop in ephy_file_browse_to Nautilus doesn't draw the desktop as always anymore. It's not visible unless you browse there, so the reason to not allow browse_to desktop is not valid anymore. Bug #618443 --- lib/ephy-file-helpers.c | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'lib/ephy-file-helpers.c') diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 5a6bc335b..11c390689 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -848,29 +848,16 @@ gboolean ephy_file_browse_to (GFile *file, guint32 user_time) { - GFile *parent, *desktop; - char *desktop_dir; + GFile *parent; gboolean ret; - desktop_dir = ephy_file_desktop_dir (); - desktop = g_file_new_for_path (desktop_dir); - - /* Don't do anything if destination is the desktop */ - if (g_file_has_prefix (file, desktop)) - { - ret = FALSE; - } - else - { - parent = g_file_get_parent (file); - /* TODO find a way to make nautilus scroll to the actual file */ - ret = ephy_file_launch_handler ("x-directory/normal", - parent, - user_time); - } + parent = g_file_get_parent (file); + /* TODO find a way to make nautilus scroll to the actual file */ + ret = ephy_file_launch_handler ("x-directory/normal", + parent, + user_time); - g_object_unref (desktop); - g_free (desktop_dir); + g_object_unref (parent); return ret; } -- cgit v1.2.3