[evolution] Bug 621819 - Can't drag message attachments to folders
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 621819 - Can't drag message attachments to folders
- Date: Wed, 23 Jun 2010 01:38:30 +0000 (UTC)
commit 30104e56e241d5eeef5fd091937043b2db5d20b1
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jun 22 19:46:07 2010 -0400
Bug 621819 - Can't drag message attachments to folders
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 3485e55..1e40087 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]