X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51fbe4cc1d6f3368c55a07149abf13967dce3d9e..bb996f289574defb0ae4339ae8e46ff3cf6fa54c:/src/gtk/checklst.cpp diff --git a/src/gtk/checklst.cpp b/src/gtk/checklst.cpp index b61f34cf4a..e082643422 100644 --- a/src/gtk/checklst.cpp +++ b/src/gtk/checklst.cpp @@ -46,8 +46,6 @@ static void gtk_checklist_toggled(GtkCellRendererToggle * WXUNUSED(renderer), // wxCheckListBox //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox,wxListBox) - wxCheckListBox::wxCheckListBox() : wxListBox() { m_hasCheckBoxes = true; @@ -88,7 +86,12 @@ void wxCheckListBox::DoCreateCheckList() 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); @@ -118,7 +121,7 @@ bool wxCheckListBox::IsChecked(unsigned int index) const 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)