X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/071a2d78147df569d57b1ef138ab126a586b594d..5d5b3a40f3335232fbc8598c6e775932fa393c05:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index c150c147ee..b369c4d8c1 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -36,6 +36,20 @@ wxControl::wxControl( wxWindow *parent, (void)Create(parent, id, pos, size, style, name); } +#if wxUSE_VALIDATORS +wxControl::wxControl( wxWindow *parent, + wxWindowID id, + const wxPoint &pos, + const wxSize &size, + long style, + const wxValidator& validator, + const wxString &name) +{ + (void)Create(parent, id, pos, size, style, name); + SetValidator(validator); +} +#endif + void wxControl::SetLabel( const wxString &label ) { m_label.Empty();