aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/ephy-file-helpers.c6
-rw-r--r--lib/ephy-file-helpers.h2
2 files changed, 3 insertions, 5 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;
}
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);