From 7aefac15c53fdecdf97dc62e39b15642097af3eb Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 24 Jan 2008 19:14:16 +0000 Subject: Better fix for bug #511759. svn path=/trunk/; revision=7888 --- lib/ephy-file-helpers.c | 6 ++---- lib/ephy-file-helpers.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') 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; } diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h index 408b975cb..4bb9e3f59 100644 --- a/lib/ephy-file-helpers.h +++ b/lib/ephy-file-helpers.h @@ -92,7 +92,7 @@ gboolean ephy_file_launch_handler (const char *mime_type, GFile *file, guint32 user_time); -gboolean ephy_file_browse_to (const char *parameter, +gboolean ephy_file_browse_to (GFile *file, guint32 user_time); void ephy_file_delete_directory (const char *path); -- cgit v1.2.3