Autcomplete defaults to string data

p_obj_autocomplete_new() can be used to create an autocompleter
that stores arbitrary data structures passing memory management
functions to get a string, copy and free
This commit is contained in:
James Booth
2012-05-20 00:54:17 +01:00
parent b02b52d86a
commit 2080a61663
4 changed files with 28 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ static PAutocomplete ac;
void contact_list_init(void)
{
ac = p_autocomplete_new((PStrFunc)p_contact_name,
ac = p_obj_autocomplete_new((PStrFunc)p_contact_name,
(PCopyFunc)p_contact_copy,
(GDestroyNotify)p_contact_free);
}