Added titles to suggestions

newfile
Markus Koch 2017-02-05 18:54:42 +01:00
parent 5b70b6b6b5
commit aca39b94e7
1 changed files with 11 additions and 0 deletions

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