diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 07:00:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 07:00:09 +0800 |
commit | b663d51f1bd01979030b8dff57a2631cd672775e (patch) | |
tree | 40648b9162fb41c49ae5bf20f3bbc24b0b030bea /mail/em-utils.c | |
parent | 8ff0684fa2e371a80cca60e8df167cc104c473c2 (diff) | |
download | gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.gz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.zst gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.zip |
Miscellaneous cleanups.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 67ee603038..a9027e0fa2 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -444,8 +444,10 @@ em_utils_flag_for_followup (EMailReader *reader, /* special-case... */ if (uids->len == 1) { CamelMessageInfo *info; + const gchar *message_uid; - info = camel_folder_get_message_info (folder, uids->pdata[0]); + message_uid = g_ptr_array_index (uids, 0); + info = camel_folder_get_message_info (folder, message_uid); if (info) { tags = (CamelTag *) camel_message_info_user_tags (info); @@ -899,7 +901,10 @@ em_utils_selection_set_urilist (GtkSelectionData *data, /* Try to get the drop filename from the message or folder */ if (uids->len == 1) { - info = camel_folder_get_message_info (folder, uids->pdata[0]); + const gchar *message_uid; + + message_uid = g_ptr_array_index (uids, 0); + info = camel_folder_get_message_info (folder, message_uid); if (info) { file = g_strdup (camel_message_info_subject (info)); camel_folder_free_message_info (folder, info); |