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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user