diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 07:00:09 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:15 +0800 |
commit | 1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e (patch) | |
tree | fe6d60ada01d8a993b45372b8b4a3e2759bec174 /mail/em-utils.c | |
parent | 0477a65401f042cfbae9a636ab76b89f25a6468a (diff) | |
download | gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar.gz gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar.bz2 gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar.lz gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar.xz gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.tar.zst gsoc2013-evolution-1a75a7d808c45cbc2c3c4b0cc6b750ef4002ed8e.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); |