-#if wxUSE_CHECKLISTBOX
- if (m_hasCheckBoxes)
- {
- gtk_list_store_set( m_liststore, &itercur,
- 0, FALSE, //FALSE == not toggled
- 1, entry, -1);
- }
- else
-#endif
- gtk_list_store_set(m_liststore, &itercur,
- 0, entry, -1);
-
- g_object_unref (entry); //liststore always refs :)
-
- GtkTreePath* path = gtk_tree_model_get_path(
- GTK_TREE_MODEL(m_liststore),
- &itercur);
-
- gint* pIntPath = gtk_tree_path_get_indices(path);
-
- if (pIntPath == NULL)
- {
- wxLogSysError(wxT("internal wxListBox error in insertion"));
- return wxNOT_FOUND;
- }