X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33720b2de5ada9513c163a9694e7e267234bf791..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index d8f6b14c9d..a167406a88 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -26,30 +26,23 @@ 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 wxValidator& validator, const wxString &name ) { - (void)Create(parent, id, pos, size, style, name); -} - + bool ret = wxWindow::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 + return ret; +} + void wxControl::SetLabel( const wxString &label ) { m_label.Empty();