From aca39b94e70dbf72e303700f6f89d6d06b776ae0 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 5 Feb 2017 18:54:42 +0100 Subject: [PATCH] Added titles to suggestions --- src/mdiary.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mdiary.c b/src/mdiary.c index efba467..3411369 100644 --- a/src/mdiary.c +++ b/src/mdiary.c @@ -488,4 +488,15 @@ void mdiary_add_entry_to_store(GtkListStore *entryListStore, -1); } } + + tag_compare_struct.result = FALSE; + + tag_compare_struct.text = title; + gtk_tree_model_foreach(GTK_TREE_MODEL(autoCompletion), mdiary_test_duplicate, &tag_compare_struct); + if (!tag_compare_struct.result) { + gtk_list_store_append(autoCompletion, &iter); + gtk_list_store_set(autoCompletion, &iter, + 0, title, + -1); + } }