From af1c2ceaef7d949e36a7680f463c5e25f79c43d6 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 13 Jan 2008 20:42:01 +0000 Subject: Drop gnome-vfs dependency. Now Epiphany depends on glib >= 2.15.1. Also, optional Zeroconf support depends on Avahi >= 0.6.22. Bug #507152. svn path=/trunk/; revision=7858 --- embed/ephy-download.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'embed/ephy-download.c') diff --git a/embed/ephy-download.c b/embed/ephy-download.c index a6f420a3d..fac8ce7ae 100644 --- a/embed/ephy-download.c +++ b/embed/ephy-download.c @@ -22,7 +22,7 @@ #include "ephy-download.h" -#include +#include #define EPHY_DOWNLOAD_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_DOWNLOAD, EphyDownloadPrivate)) @@ -115,21 +115,18 @@ ephy_download_new (void) char * ephy_download_get_name (EphyDownload *download) { - GnomeVFSURI *uri; char *target; char *result; target = ephy_download_get_target (download); - uri = gnome_vfs_uri_new (target); - if (uri) + if (target) { - result = gnome_vfs_uri_extract_short_name (uri); - gnome_vfs_uri_unref (uri); + result = g_path_get_basename (target); } else { - result = g_strdup ("Unknown"); + result = g_strdup (_("Unknown")); } g_free (target); -- cgit