X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93c5dd39af2fb5eb12c5c837999be944543b21b0..a533f5c122c27b44a80b4eef2bd907a44bec8b70:/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