X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/002f42185d25472085d36a077d1428d71c781e5b..e1f36ff823aa21414b756cbe451853d1f1338fd9:/src/gtk1/choice.cpp diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index 742c29ecb7..bd63c5e3f8 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -14,6 +14,8 @@ #include "wx/choice.h" +#if wxUSE_CHOICE + #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -71,7 +73,9 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, PreCreation( parent, id, pos, size, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif m_widget = gtk_option_menu_new(); @@ -251,7 +255,7 @@ int wxChoice::FindString( const wxString &string ) const wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") ); - if (string == wxString(label->label,*wxConv_current)) + if (string == wxString(label->label,*wxConvCurrent)) return count; child = child->next; @@ -304,7 +308,7 @@ wxString wxChoice::GetString( int n ) const wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") ); - return wxString(label->label,*wxConv_current); + return wxString(label->label,*wxConvCurrent); } child = child->next; count++; @@ -323,7 +327,7 @@ wxString wxChoice::GetStringSelection() const wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") ); - return wxString(label->label,*wxConv_current); + return wxString(label->label,*wxConvCurrent); } int wxChoice::Number() const @@ -388,3 +392,4 @@ void wxChoice::ApplyWidgetStyle() } } +#endif