X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02e8b2f9fbdfcd25080c42082d637da257c20094..4d94751752c081c289a1d8f159405487dbbe4e68:/src/motif/checkbox.cpp?ds=sidebyside diff --git a/src/motif/checkbox.cpp b/src/motif/checkbox.cpp index 4f2330ab32..c71ed1a5ab 100644 --- a/src/motif/checkbox.cpp +++ b/src/motif/checkbox.cpp @@ -75,10 +75,9 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, void wxCheckBox::SetValue(bool val) { - // TODO: m_inSetValue - // inSetValue = TRUE; + m_inSetValue = TRUE; XmToggleButtonSetState ((Widget) m_mainWidget, (Boolean) val, TRUE); - // inSetValue = FALSE; + m_inSetValue = FALSE; } bool wxCheckBox::GetValue() const @@ -140,9 +139,9 @@ void wxCheckBoxCallback (Widget w, XtPointer clientData, XtPointer ptr) { wxCheckBox *item = (wxCheckBox *) clientData; - // TODO - // if (item->inSetValue) - // return; + + if (item->InSetValue()) + return; wxCommandEvent event (wxEVT_COMMAND_CHECKBOX_CLICKED, item->GetId()); event.SetInt((int) item->GetValue ());