wxCHECK_RET( listbox->m_treeview != NULL, wxT("invalid listbox") );
GtkTreePath* path = gtk_tree_path_new_from_string(stringpath);
- wxCommandEvent new_event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
+ wxCommandEvent new_event( wxEVT_CHECKLISTBOX,
listbox->GetId() );
new_event.SetEventObject( listbox );
new_event.SetInt( gtk_tree_path_get_indices(path)[0] );
// wxCheckListBox
//-----------------------------------------------------------------------------
-wxCheckListBox::wxCheckListBox() : wxListBox()
+wxCheckListBox::wxCheckListBox() : wxCheckListBoxBase()
{
m_hasCheckBoxes = true;
}
0, //column
&value);
- return g_value_get_boolean(&value) == TRUE ? true : false;
+ return g_value_get_boolean(&value) != 0;
}
void wxCheckListBox::Check(unsigned int index, bool check)