aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2008-01-25 03:14:16 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-01-25 03:14:16 +0800
commit7aefac15c53fdecdf97dc62e39b15642097af3eb (patch)
tree175d14b1da5ffdf7b78a6409309b60865095b4a6 /lib/ephy-file-helpers.c
parent03f88794174a3e34b45da41befe217766b3fea09 (diff)
downloadgsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.gz
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.bz2
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.lz
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.xz
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.zst
gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.zip
Better fix for bug #511759.
svn path=/trunk/; revision=7888
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 22e8ef9e9..79885bd59 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -702,14 +702,13 @@ ephy_file_launch_handler (const char *mime_type,
}
gboolean
-ephy_file_browse_to (const char *parameter,
+ephy_file_browse_to (GFile *file,
guint32 user_time)
{
- GFile *file, *parent, *desktop;
+ GFile *parent, *desktop;
char *desktop_dir;
gboolean ret;
- file = g_file_new_for_uri (parameter);
desktop_dir = ephy_file_desktop_dir ();
desktop = g_file_new_for_path (desktop_dir);
@@ -728,7 +727,6 @@ ephy_file_browse_to (const char *parameter,
}
g_free (desktop_dir);
- g_object_unref (file);
return ret;
}