diff options
| author | Carl Worth <cworth@cworth.org> | 2011-04-25 14:26:42 -0700 |
|---|---|---|
| committer | Carl Worth <cworth@cworth.org> | 2011-04-25 14:26:42 -0700 |
| commit | df91c16943aa4f5c47452fa7d21e65df2d9e315b (patch) | |
| tree | 9dc0d62187f5aeea3b5f2c1de9ceed2576ed23b9 /lib/thread.cc | |
| parent | 907cac7035a889cf67a51169c2d2d23ee14cf7a2 (diff) | |
| parent | b599bbe6721f6320c732ec7187f798ce60781887 (diff) | |
Merge remote-tracking branch 'amdragon/eager-metadata-v4'
Diffstat (limited to 'lib/thread.cc')
| -rw-r--r-- | lib/thread.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/thread.cc b/lib/thread.cc index 5190a663..ace5ce7f 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -537,23 +537,23 @@ notmuch_thread_get_newest_date (notmuch_thread_t *thread) notmuch_tags_t * notmuch_thread_get_tags (notmuch_thread_t *thread) { - notmuch_tags_t *tags; + notmuch_string_list_t *tags; GList *keys, *l; - tags = _notmuch_tags_create (thread); + tags = _notmuch_string_list_create (thread); if (unlikely (tags == NULL)) return NULL; keys = g_hash_table_get_keys (thread->tags); for (l = keys; l; l = l->next) - _notmuch_tags_add_tag (tags, (char *) l->data); + _notmuch_string_list_append (tags, (char *) l->data); g_list_free (keys); - _notmuch_tags_prepare_iterator (tags); + _notmuch_string_list_sort (tags); - return tags; + return _notmuch_tags_create (thread, tags); } void |
