aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selection-button.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-11-18 04:34:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-11-18 04:34:56 +0800
commitf0e50562beaab4f171655307cb0b042faabe02ca (patch)
tree55289bd3d8418d83e5771f2ad533e623811b9d9b /mail/em-folder-selection-button.c
parentd448d8ab21d04145d2c534b1ec6aa537d30618a3 (diff)
downloadgsoc2013-evolution-f0e50562beaab4f171655307cb0b042faabe02ca.tar.gz
gsoc2013-evolution-f0e50562beaab4f171655307cb0b042faabe02ca.tar.zst
gsoc2013-evolution-f0e50562beaab4f171655307cb0b042faabe02ca.zip
Fixed to not include leading '/' in the folder name in the label.
2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selection-button.c (set_contents): Fixed to not include leading '/' in the folder name in the label. * em-folder-tree.c (emft_popup_new_folder_response): Implemented error reporting via gtk dialogs. (emft_popup_copy_folder_selected): Same. svn path=/trunk/; revision=23401
Diffstat (limited to 'mail/em-folder-selection-button.c')
-rw-r--r--mail/em-folder-selection-button.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c
index a31569fd33..5187e8d324 100644
--- a/mail/em-folder-selection-button.c
+++ b/mail/em-folder-selection-button.c
@@ -120,7 +120,7 @@ static void
set_contents (EMFolderSelectionButton *button)
{
struct _EMFolderSelectionButtonPrivate *priv = button->priv;
- const char *path;
+ const char *folder_name;
CamelURL *url;
if (priv->uri == NULL
@@ -129,15 +129,15 @@ set_contents (EMFolderSelectionButton *button)
return;
}
- path = url->fragment ? url->fragment : url->path;
+ folder_name = url->fragment ? url->fragment : url->path + 1;
- if (path == NULL) {
+ if (folder_name == NULL) {
camel_url_free (url);
set_contents_unselected (button);
return;
}
- gtk_label_set_text (GTK_LABEL (priv->label), path);
+ gtk_label_set_text (GTK_LABEL (priv->label), folder_name);
camel_url_free (url);
}