diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index 6f352ec728..70715fd948 100644 --- a/include/wx/motif/listbox.h +++ b/include/wx/motif/listbox.h @@ -26,7 +26,7 @@ class WXDLLEXPORT wxArrayInt; WXDLLEXPORT_DATA(extern const char*) wxEmptyString; // List box item -class WXDLLEXPORT wxListBox: public wxControlWithItems +class WXDLLEXPORT wxListBox: public wxListBoxBase { DECLARE_DYNAMIC_CLASS(wxListBox) @@ -87,7 +87,7 @@ public: // For single or multiple choice list item virtual int GetSelections(wxArrayInt& aSelections) const; - virtual bool Selected(int n) const ; + virtual bool IsSelected(int n) const ; virtual wxString GetString(int n) const ; // Set the specified item at the first visible item diff --git a/src/motif/listbox.cpp b/src/motif/listbox.cpp index 6587b742b2..8b25c36f2a 100644 --- a/src/motif/listbox.cpp +++ b/src/motif/listbox.cpp @@ -414,7 +414,7 @@ void wxListBox::SetSelection(int N, bool select) m_inSetValue = FALSE; } -bool wxListBox::Selected(int N) const +bool wxListBox::IsSelected(int N) const { // In Motif, no simple way to determine if the item is selected. wxArrayInt theSelections;