aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-30 07:17:52 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:22 +0800
commit80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd (patch)
tree4294ae7ed0a11ac52de3e1199bbdce376dca8332 /mail/em-folder-tree.c
parentcf2877c49ac0893ad6106679c5d33714a9dc0896 (diff)
downloadgsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar.gz
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar.bz2
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar.lz
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar.xz
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.tar.zst
gsoc2013-evolution-80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd.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.c23
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 (