use a prefix match for interactive search
having to type in the whole string to get a match is worthless git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c60cef10bc
commit
f8b4d39e0f
@ -225,11 +225,11 @@ static gboolean gtk_listbox_searchequal_callback(GtkTreeModel * WXUNUSED(model),
|
||||
wxListBox* listbox)
|
||||
{
|
||||
wxTreeEntry* entry = GetEntry(listbox->m_liststore, iter, listbox);
|
||||
wxCHECK_MSG(entry, 0, wxT("Could not get entry"));
|
||||
wxCHECK_MSG(entry, true, "could not get entry");
|
||||
|
||||
wxGtkString keycollatekey(g_utf8_collate_key(key, -1));
|
||||
wxGtkString keyc(g_utf8_collate_key(key, -1));
|
||||
|
||||
return strcmp(keycollatekey, wx_tree_entry_get_collate_key(entry)) != 0;
|
||||
return strncmp(keyc, wx_tree_entry_get_collate_key(entry), strlen(keyc));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user