]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
even controls with transparent background should draw it if they have an explicitly...
[wxWidgets.git] / src / gtk / checkbox.cpp
index f3352a13977f767c1450af8bee067361ec3c3c80..d984b94865c26e02de9d0b3b1a6d8e3dec64ea28 100644 (file)
@@ -203,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);
 }