Added titles to suggestions

This commit is contained in:
Markus Koch 2017-02-05 18:54:42 +01:00
parent 5b70b6b6b5
commit aca39b94e7

View File

@ -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);
}
}