X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef5c70f96f5e06e1c8f8119f51b99dd019583d2b..ed8385818f26035d2f60d3a719250ffab48e6c34:/src/gtk/checkbox.cpp diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 7dcc25d78f..1e25d81b9d 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -14,7 +14,7 @@ #include "wx/checkbox.h" -#include "wx/gtk/private.h" +#include //----------------------------------------------------------------------------- // data @@ -29,8 +29,6 @@ extern bool g_blockEventsOnDrag; extern "C" { static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb) { - if (g_isIdle) wxapp_install_idle_handler(); - if (!cb->m_hasVMT) return; if (g_blockEventsOnDrag) return; @@ -109,8 +107,6 @@ bool wxCheckBox::Create(wxWindow *parent, const wxValidator& validator, const wxString &name ) { - m_needParent = true; - m_acceptsFocus = true; m_blockEvent = false; if (!PreCreation( parent, pos, size ) || @@ -204,6 +200,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); }