aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/action.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-11-25 17:18:48 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-11-25 17:18:48 +0000
commit6dcb75c26bbfec04b381bb99d75404f9fe50635d (patch)
treeb4b0e4e7b92c2d6563a848279cb5b48e7e183f96 /lib/actions/action.h
parent26a6141301937e0ef501b4cd7ae61b4f2293b7e5 (diff)
downloadenigma2-6dcb75c26bbfec04b381bb99d75404f9fe50635d.tar.gz
enigma2-6dcb75c26bbfec04b381bb99d75404f9fe50635d.zip
python object refcount debugging code second try
Diffstat (limited to 'lib/actions/action.h')
-rw-r--r--lib/actions/action.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/actions/action.h b/lib/actions/action.h
index 560fdbbf..f2e0d8f4 100644
--- a/lib/actions/action.h
+++ b/lib/actions/action.h
@@ -7,7 +7,6 @@
#include <features.h>
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
-#include <Python.h>
#include <lib/python/python.h>
#include <string>
#include <map>
@@ -29,8 +28,8 @@ public:
void unbindAction(eWidget *widget, int id);
#endif
- void bindAction(const std::string &context, int priority, PyObject *function);
- void unbindAction(const std::string &context, PyObject *function);
+ void bindAction(const std::string &context, int priority, SWIG_PYOBJECT(ePyObject) function);
+ void unbindAction(const std::string &context, SWIG_PYOBJECT(ePyObject) function);
void bindKey(const std::string &device, int key, int flags, const std::string &context, const std::string &action);
@@ -45,7 +44,7 @@ private:
// eActionContext *m_context;
std::string m_context; // FIXME
- PyObject *m_fnc;
+ ePyObject m_fnc;
eWidget *m_widget;
int m_id;