X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93c5dd39af2fb5eb12c5c837999be944543b21b0..1a5e297c6b5b745afee30caf430ce62e9519a181:/src/gtk/checklst.cpp?ds=sidebyside diff --git a/src/gtk/checklst.cpp b/src/gtk/checklst.cpp index fc439b68de..6c08581ae6 100644 --- a/src/gtk/checklst.cpp +++ b/src/gtk/checklst.cpp @@ -13,6 +13,8 @@ #include "wx/checklst.h" +#if wxUSE_CHECKLISTBOX + #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -22,8 +24,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox,wxListBox) -wxCheckListBox::wxCheckListBox() : - wxListBox() +wxCheckListBox::wxCheckListBox() : wxListBox() { m_hasCheckBoxes = TRUE; } @@ -51,9 +52,9 @@ bool wxCheckListBox::IsChecked( int index ) const GtkBin *bin = GTK_BIN( child->data ); GtkLabel *label = GTK_LABEL( bin->child ); - wxString str = label->label; + wxString str = wxString(label->label,*wxConv_current); - return (str[1] == 'X'); + return (str[1] == _T('X')); } wxFAIL_MSG(_T("wrong checklistbox index")); @@ -70,7 +71,7 @@ void wxCheckListBox::Check( int index, bool check ) GtkBin *bin = GTK_BIN( child->data ); GtkLabel *label = GTK_LABEL( bin->child ); - wxString str = label->label; + wxString str = wxString(label->label,*wxConvCurrent); if (check == (str[1] == _T('X'))) return; @@ -92,3 +93,5 @@ int wxCheckListBox::GetItemHeight() const // FIXME return 22; } + +#endif