private:
PyObject* m_self;
PyObject* m_lastFound;
+ int m_incRef;
};
// themselves and some special case handling in wxPyCallback::EventThunker.
-class wxPySelfRef {
+class wxPyEvtSelfRef {
public:
- wxPySelfRef();
- ~wxPySelfRef();
+ wxPyEvtSelfRef();
+ ~wxPyEvtSelfRef();
void SetSelf(PyObject* self, bool clone=FALSE);
PyObject* GetSelf() const;
};
-class wxPyEvent : public wxEvent, public wxPySelfRef {
+class wxPyEvent : public wxEvent, public wxPyEvtSelfRef {
DECLARE_DYNAMIC_CLASS(wxPyEvent)
public:
wxPyEvent(int id=0);
};
-class wxPyCommandEvent : public wxCommandEvent, public wxPySelfRef {
+class wxPyCommandEvent : public wxCommandEvent, public wxPyEvtSelfRef {
DECLARE_DYNAMIC_CLASS(wxPyCommandEvent)
public:
wxPyCommandEvent(wxEventType commandType = wxEVT_NULL, int id=0);
//---------------------------------------------------------------------------
#define PYPRIVATE \
- void _setSelf(PyObject* self, int incref=TRUE) { \
+ void _setSelf(PyObject* self, int incref=1) { \
m_myInst.setSelf(self, incref); \
} \
private: wxPyCallbackHelper m_myInst;