X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93c5dd39af2fb5eb12c5c837999be944543b21b0..e7b3d6babbc006f2936be6827d0b826adbbc82e4:/src/gtk1/checklst.cpp diff --git a/src/gtk1/checklst.cpp b/src/gtk1/checklst.cpp index fc439b68de..6c08581ae6 100644 --- a/src/gtk1/checklst.cpp +++ b/src/gtk1/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