diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-06-23 07:46:07 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-23 07:50:19 +0800 |
commit | 30104e56e241d5eeef5fd091937043b2db5d20b1 (patch) | |
tree | 8d4938ceb07423266b4f4bdf14ddb45bc39a1da5 /mail/em-utils.c | |
parent | 06608d12dfd6d2480743cd16f5096fbccdb9babf (diff) | |
download | gsoc2013-evolution-30104e56e241d5eeef5fd091937043b2db5d20b1.tar.gz gsoc2013-evolution-30104e56e241d5eeef5fd091937043b2db5d20b1.tar.zst gsoc2013-evolution-30104e56e241d5eeef5fd091937043b2db5d20b1.zip |
Bug 621819 - Can't drag message attachments to folders
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 3485e55818..1e40087f18 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -904,18 +904,12 @@ em_utils_selection_get_urilist (GtkSelectionData *selection_data, CamelStream *stream; CamelURL *url; gint fd, i, res = 0; - gchar *tmp, **uris; - const guchar *data; - gint length; + gchar **uris; d(printf(" * drop uri list\n")); - data = gtk_selection_data_get_data (selection_data); - length = gtk_selection_data_get_length (selection_data); + uris = gtk_selection_data_get_uris (selection_data); - tmp = g_strndup ((gchar *) data, length); - uris = g_strsplit (tmp, "\n", 0); - g_free(tmp); for (i=0;res == 0 && uris[i];i++) { g_strstrip(uris[i]); if (uris[i][0] == '#') @@ -937,7 +931,7 @@ em_utils_selection_get_urilist (GtkSelectionData *selection_data, camel_url_free(url); } - g_strfreev(uris); + g_strfreev (uris); } static void |