diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-06-25 22:44:49 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-25 22:44:49 +0800 |
commit | ead0633d3ba2685b2311a26afc66aaa660666688 (patch) | |
tree | 7949c95315bde142058d105b463c24875aeffc3a /mail/em-folder-tree.c | |
parent | 8f5eaf4319d7bc34d3660fe8a6161142cd96e4e8 (diff) | |
download | gsoc2013-evolution-ead0633d3ba2685b2311a26afc66aaa660666688.tar.gz gsoc2013-evolution-ead0633d3ba2685b2311a26afc66aaa660666688.tar.zst gsoc2013-evolution-ead0633d3ba2685b2311a26afc66aaa660666688.zip |
Don't prepend the path string with a '/'.
2004-06-23 Jeffrey Stedfast <fejj@novell.com>
* em-folder-selector.c (em_folder_selector_get_selected_path):
Don't prepend the path string with a '/'.
* em-folder-tree.c (em_folder_tree_create_folder): This takes a
full_name so update the argument to make that clear.
(emft_create_folder): Same and also don't strip a leading '/'
svn path=/trunk/; revision=26513
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 6ca06aa87a..eb1cf9bffe 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2050,7 +2050,7 @@ emft_popup_copy_folder_selected (const char *uri, void *data) priv = cfd->emft->priv; - printf ("%sing folder '%s' to '%s'\n", cfd->delete ? "move" : "copy", priv->selected_path, uri); + d(printf ("%sing folder '%s' to '%s'\n", cfd->delete ? "move" : "copy", priv->selected_path, uri)); camel_exception_init (&ex); frombase = priv->selected_path; @@ -2188,14 +2188,13 @@ static struct _mail_msg_op create_folder_op = { static int -emft_create_folder (CamelStore *store, const char *path, void (* done) (CamelFolderInfo *fi, void *user_data), void *user_data) +emft_create_folder (CamelStore *store, const char *full_name, void (* done) (CamelFolderInfo *fi, void *user_data), void *user_data) { - const char *parent, *full_name; char *name, *namebuf = NULL; struct _EMCreateFolder *m; + const char *parent; int id; - full_name = path[0] == '/' ? path + 1 : path; namebuf = g_strdup (full_name); if (!(name = strrchr (namebuf, '/'))) { name = namebuf; @@ -2231,7 +2230,7 @@ created_cb (CamelFolderInfo *fi, void *user_data) } gboolean -em_folder_tree_create_folder (EMFolderTree *emft, const char *path, const char *uri) +em_folder_tree_create_folder (EMFolderTree *emft, const char *full_name, const char *uri) { struct _EMFolderTreePrivate *priv = emft->priv; struct _EMFolderTreeModelStoreInfo *si; @@ -2239,12 +2238,12 @@ em_folder_tree_create_folder (EMFolderTree *emft, const char *path, const char * CamelStore *store; CamelException ex; - d(printf ("Creating folder: %s (%s)\n", path, uri)); + d(printf ("Creating folder: %s (%s)\n", full_name, uri)); camel_exception_init (&ex); if (!(store = (CamelStore *) camel_session_get_service (session, uri, CAMEL_PROVIDER_STORE, &ex))) { e_error_run((GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)emft), - "mail:no-create-folder-nostore", path, ex.desc, NULL); + "mail:no-create-folder-nostore", full_name, ex.desc, NULL); goto fail; } @@ -2256,7 +2255,7 @@ em_folder_tree_create_folder (EMFolderTree *emft, const char *path, const char * camel_object_unref (store); - mail_msg_wait (emft_create_folder (si->store, path, created_cb, &created)); + mail_msg_wait (emft_create_folder (si->store, full_name, created_cb, &created)); fail: camel_exception_clear(&ex); |