diff options
author | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-14 04:42:01 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-14 04:42:01 +0800 |
commit | af1c2ceaef7d949e36a7680f463c5e25f79c43d6 (patch) | |
tree | 19c94f1df613831ed8ab92b4ac904be0c20c673f /embed/ephy-download.c | |
parent | 12d96e8a6fc9eddaffdbad58754e712af5fc5fef (diff) | |
download | gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar.gz gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar.bz2 gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar.lz gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar.xz gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.tar.zst gsoc2013-epiphany-af1c2ceaef7d949e36a7680f463c5e25f79c43d6.zip |
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
Diffstat (limited to 'embed/ephy-download.c')
-rw-r--r-- | embed/ephy-download.c | 11 |
1 files changed, 4 insertions, 7 deletions
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 <libgnomevfs/gnome-vfs-uri.h> +#include <glib/gi18n.h> #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); |