X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef5c70f96f5e06e1c8f8119f51b99dd019583d2b..9859d369b49e35a1cad0f760173e165f974fb6cb:/src/gtk/checkbox.cpp?ds=sidebyside diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 7dcc25d78f..d984b94865 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -110,7 +110,6 @@ bool wxCheckBox::Create(wxWindow *parent, const wxString &name ) { m_needParent = true; - m_acceptsFocus = true; m_blockEvent = false; if (!PreCreation( parent, pos, size ) || @@ -204,6 +203,9 @@ void wxCheckBox::SetLabel( const wxString& label ) { wxCHECK_RET( m_widgetLabel != NULL, wxT("invalid checkbox") ); + // save the label inside m_label in case user calls GetLabel() later + wxControl::SetLabel(label); + GTKSetLabelForLabel(GTK_LABEL(m_widgetLabel), label); }