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/message-list.c | |
parent | 8ff0684fa2e371a80cca60e8df167cc104c473c2 (diff) | |
download | gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.gz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.bz2 gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.lz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.xz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.zst gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.zip |
Miscellaneous cleanups.
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 592e8e1370..9adf2b4776 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3937,14 +3937,14 @@ static void on_selection_changed_cmd (ETree *tree, MessageList *ml) { GPtrArray *uids; - gchar *newuid; + const gchar *newuid; ETreePath cursor; /* not sure if we could just ignore this for the cursor, i think sometimes you only get a selection changed when you should also get a cursor activated? */ uids = message_list_get_selected (ml); if (uids->len == 1) - newuid = uids->pdata[0]; + newuid = g_ptr_array_index (uids, 0); else if ((cursor = e_tree_get_cursor (tree))) newuid = (gchar *) camel_message_info_uid (e_tree_memory_node_get_data ((ETreeMemory *) tree, cursor)); else |