X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33720b2de5ada9513c163a9694e7e267234bf791..e04221b6d015ae149e48a4040fa68f97a5dec36b:/src/gtk/control.cpp?ds=sidebyside diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index d8f6b14c9d..dee6ebb691 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -26,30 +26,25 @@ wxControl::wxControl() m_needParent = TRUE; } -wxControl::wxControl( wxWindow *parent, +bool wxControl::Create( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style, - const wxString &name ) -{ - (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) +#endif + const wxString &name ) { - (void)Create(parent, id, pos, size, style, name); + bool ret = wxWindow::Create(parent, id, pos, size, style, name); + +#if wxUSE_VALIDATORS SetValidator(validator); -} #endif + return ret; +} + void wxControl::SetLabel( const wxString &label ) { m_label.Empty();