]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls.i
added wxRecursionGuard
[wxWidgets.git] / wxPython / src / controls.i
index bb6a3070b3a926014d05014aaada084bdd41f450..461262b48eaad8eb8942280d59872125c061fa51 100644 (file)
@@ -458,7 +458,11 @@ public:
         }
 
         PyObject* GetClientData(int n) {
+#ifdef __WXMAC__
+            wxPyClientData* data = (wxPyClientData*)self->wxItemContainer::GetClientObject(n);
+#else
             wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
+#endif
             if (data) {
                 Py_INCREF(data->m_obj);
                 return data->m_obj;
@@ -470,7 +474,11 @@ public:
 
         void SetClientData(int n, PyObject* clientData) {
             wxPyClientData* data = new wxPyClientData(clientData);
+#ifdef __WXMAC__
+            self->wxItemContainer::SetClientObject(n, data);
+#else
             self->SetClientObject(n, data);
+#endif
         }
     }