+wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ const wxArrayString& choices,
+ long style,
+ const wxValidator& validator,
+ const wxString& name )
+{
+ m_hasCheckBoxes = true;
+ wxListBox::Create( parent, id, pos, size, choices,
+ style, validator, name );
+}
+
+void wxCheckListBox::DoCreateCheckList()
+{
+ //Create the checklist in our treeview and set up events for it
+ GtkCellRenderer* renderer =
+ gtk_cell_renderer_toggle_new();
+ GtkTreeViewColumn* column =
+ gtk_tree_view_column_new_with_attributes( "", renderer,
+ "active", 0,
+ NULL );
+#if wxUSE_LIBHILDON2
+ gtk_tree_view_column_set_fixed_width(column, 40);
+#else
+ gtk_tree_view_column_set_fixed_width(column, 22);
+#endif // wxUSE_LIBHILDON2/!wxUSE_LIBHILDON2
+
+ gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED);
+ gtk_tree_view_column_set_clickable(column, TRUE);
+
+ g_signal_connect (renderer, "toggled",
+ G_CALLBACK (gtk_checklist_toggled),
+ this);
+
+ gtk_tree_view_append_column(m_treeview, column);
+}
+
+bool wxCheckListBox::IsChecked(unsigned int index) const