- GtkTreeEntry* entry;
- GtkTreeEntry* entry2;
-
- gtk_tree_model_get(GTK_TREE_MODEL(listbox->m_liststore),
- a,
- WXLISTBOX_DATACOLUMN_ARG(listbox),
- &entry, -1);
- gtk_tree_model_get(GTK_TREE_MODEL(listbox->m_liststore),
- b,
- WXLISTBOX_DATACOLUMN_ARG(listbox),
- &entry2, -1);
- wxCHECK_MSG(entry, 0, wxT("Could not get entry"));
- wxCHECK_MSG(entry2, 0, wxT("Could not get entry2"));
-
- //We compare collate keys here instead of calling g_utf8_collate
- //as it is rather slow (and even the docs reccommend this)
- int ret = strcasecmp(gtk_tree_entry_get_collate_key(entry),
- gtk_tree_entry_get_collate_key(entry2));
+ wxGtkObject<GtkTreeEntry> entry1(GetEntry(listbox->m_liststore, a, listbox));
+ wxCHECK_MSG(entry1, 0, wxT("Could not get first entry"));