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 --- src/ephy-window.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/ephy-window.c') diff --git a/src/ephy-window.c b/src/ephy-window.c index ef8935bea..7213d1315 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -60,7 +60,7 @@ #include #include -#include +#include #include #include #include @@ -1977,15 +1977,9 @@ embed_popup_deactivate_cb (GtkWidget *popup, static char * get_name_from_address_value (const GValue *value) { - GnomeVFSURI *uri; - char *name = NULL; + char *name; - uri = gnome_vfs_uri_new (g_value_get_string (value)); - if (uri) - { - name = gnome_vfs_uri_extract_short_name (uri); - gnome_vfs_uri_unref (uri); - } + name = g_path_get_basename (g_value_get_string (value)); return name != NULL ? name : g_strdup (""); } -- cgit v1.2.3