diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-04-13 06:05:11 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-04-13 06:05:11 +0000 |
commit | d7f2206f66dbdd0e67144426ddfcc39ca14504fe (patch) | |
tree | f18d819630d382590ca1d2cb79b85c25d851c4bc /src | |
parent | 615bb68313176115f2797307254a025e2553fbd0 (diff) | |
download | nautilus-d7f2206f66dbdd0e67144426ddfcc39ca14504fe.tar.gz |
improved title for non-vfs uris, used Gene's routine to escape http
improved title for non-vfs uris, used Gene's routine to escape http
parameters in service stuff, and finally weakened assert in
nautilus directory to allow non-vfs uris to continue to work
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-window-manage-views.c | 7 | ||||
-rw-r--r-- | src/ntl-window-msgs.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 776ecfb0f..59146379a 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -200,7 +200,12 @@ compute_default_title (const char *text_uri) g_assert (short_name != NULL); return short_name; - } + } else { + gchar *colon_pos = strchr(text_uri, ':'); + if (colon_pos && colon_pos[1]) + return g_strdup(colon_pos + 1); + } + } return g_strdup(_("Nautilus")); diff --git a/src/ntl-window-msgs.c b/src/ntl-window-msgs.c index 776ecfb0f..59146379a 100644 --- a/src/ntl-window-msgs.c +++ b/src/ntl-window-msgs.c @@ -200,7 +200,12 @@ compute_default_title (const char *text_uri) g_assert (short_name != NULL); return short_name; - } + } else { + gchar *colon_pos = strchr(text_uri, ':'); + if (colon_pos && colon_pos[1]) + return g_strdup(colon_pos + 1); + } + } return g_strdup(_("Nautilus")); |