X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7074ce3577987748739169a9475ffdc0f9873595..edcccd84c367a8c4f737edecf92a7b3904e95266:/src/gtk1/control.cpp diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index c12735e39b..41f5cc4ea1 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -33,7 +33,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxControl, wxWindow) wxControl::wxControl() { m_needParent = TRUE; - m_createComplete = false; } bool wxControl::Create( wxWindow *parent, @@ -44,7 +43,6 @@ bool wxControl::Create( wxWindow *parent, const wxValidator& validator, const wxString &name ) { - m_createComplete = false; bool ret = wxWindow::Create(parent, id, pos, size, style, name); #if wxUSE_VALIDATORS @@ -70,14 +68,6 @@ void wxControl::SetLabel( const wxString &label ) } } -void wxControl::PostSetLabel() -{ - // make sure the widget has been created, and that PostCreate has already - // been called - if (m_widget && m_createComplete && GetAdjustMinSizeFlag()) - SetBestSize(wxDefaultSize); -} - wxString wxControl::GetLabel() const { return m_label; @@ -113,7 +103,6 @@ void wxControl::PostCreation(const wxSize& size) InheritAttributes(); ApplyWidgetStyle(); SetInitialBestSize(size); - m_createComplete = true; }