diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-02-16 08:58:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-02-16 08:58:22 +0800 |
commit | 4801096f6186fe7d3ff06544ab7fb0e635131524 (patch) | |
tree | 247180aec7dbd9d8f5b4208ee1ddfe80ecc4a92d /mail/mail-account-gui.c | |
parent | 40fc52b3220bba58fec4e2abe11105011aca5c6f (diff) | |
download | gsoc2013-evolution-4801096f6186fe7d3ff06544ab7fb0e635131524.tar.gz gsoc2013-evolution-4801096f6186fe7d3ff06544ab7fb0e635131524.tar.zst gsoc2013-evolution-4801096f6186fe7d3ff06544ab7fb0e635131524.zip |
Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (basename_from_uri): Ack, strip off the
leading '/' char and also only translate if it is a file: uri,
imap folders and other external folders will be named by the user
so no need to translate those.
svn path=/trunk/; revision=15750
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r-- | mail/mail-account-gui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 092c8c5a99..a6fe52eaf1 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -829,7 +829,10 @@ basename_from_uri (const char *uri) g_assert (base != NULL); /* translate the basename: fixes bug #7160 */ - return g_strdup (_(base + 1)); + if (!strncmp (uri, "file:", 5)) + return g_strdup (_(base + 1)); + else + return g_strdup (base + 1); } static void |