diff options
Diffstat (limited to 'daemon/gvfsbackendafpbrowse.c')
-rw-r--r-- | daemon/gvfsbackendafpbrowse.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c index 02b9ab92..db9ed629 100644 --- a/daemon/gvfsbackendafpbrowse.c +++ b/daemon/gvfsbackendafpbrowse.c @@ -444,6 +444,7 @@ do_mount (GVfsBackend *backend, GError *err = NULL; GMountSpec *afp_mount_spec; + char *server_name; char *display_name; afp_backend->server = g_vfs_afp_server_new (afp_backend->addr); @@ -463,12 +464,17 @@ do_mount (GVfsBackend *backend, g_vfs_backend_set_mount_spec (backend, afp_mount_spec); g_mount_spec_unref (afp_mount_spec); + if (afp_backend->server->utf8_server_name) + server_name = afp_backend->server->utf8_server_name; + else + server_name = afp_backend->server->server_name; + if (afp_backend->user) display_name = g_strdup_printf (_("AFP shares for %s on %s"), afp_backend->user, - afp_backend->server->server_name); + server_name); else display_name = g_strdup_printf (_("AFP shares on %s"), - afp_backend->server->server_name); + server_name); g_vfs_backend_set_display_name (backend, display_name); g_free (display_name); |