diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-30 07:17:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-06-01 03:40:51 +0800 |
commit | 96822fce5e55775dc800bb6ccc8be64e70f96cfd (patch) | |
tree | e8bc0fc5ca7973b872df5efd12658b9d7c235acd /mail/em-folder-tree.c | |
parent | 95ec5734c1c5fb0a513e716b6aad8ad5419c2ca2 (diff) | |
download | gsoc2013-evolution-96822fce5e55775dc800bb6ccc8be64e70f96cfd.tar.gz gsoc2013-evolution-96822fce5e55775dc800bb6ccc8be64e70f96cfd.tar.zst gsoc2013-evolution-96822fce5e55775dc800bb6ccc8be64e70f96cfd.zip |
Fix more places where old-style folder URIs are used.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 04e544e47b..bf5958a5c3 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2040,27 +2040,24 @@ folder_tree_drop_folder (struct _DragDataReceivedAsync *m) static gchar * folder_tree_drop_async__desc (struct _DragDataReceivedAsync *m) { - CamelURL *url; const guchar *data; - gchar *buf; data = gtk_selection_data_get_data (m->selection); if (m->info == DND_DROP_TYPE_FOLDER) { - url = camel_url_new ((gchar *) data, NULL); + gchar *folder_name = NULL; + + e_mail_folder_uri_parse ( + CAMEL_SESSION (m->session), + (gchar *) data, NULL, &folder_name, NULL); + g_return_val_if_fail (folder_name != NULL, NULL); if (m->move) - buf = g_strdup_printf ( - _("Moving folder %s"), url->fragment ? - url->fragment : url->path + 1); + return g_strdup_printf ( + _("Moving folder %s"), folder_name); else - buf = g_strdup_printf ( - _("Copying folder %s"), url->fragment ? - url->fragment : url->path + 1); - - camel_url_free (url); - - return buf; + return g_strdup_printf ( + _("Copying folder %s"), folder_name); } else { if (m->move) return g_strdup_printf ( |