]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
added our own implementation of strto[u]ll() if the system doesn't have one (patch...
[wxWidgets.git] / src / gtk / checkbox.cpp
index 7dcc25d78f9527f07063671d146efd7a9e6b299a..d984b94865c26e02de9d0b3b1a6d8e3dec64ea28 100644 (file)
@@ -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);
 }