aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-12-05 03:08:36 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-12-05 03:08:36 +0000
commit02226aee689caad4d05e65448ec7640d33e8f659 (patch)
tree4388956180ee2f705365c2c3c556d40a892d6aa7 /lib/python
parenta48bc4879c6ac4c6eb163f6bb3c0b5c0536fcee8 (diff)
downloadenigma2-02226aee689caad4d05e65448ec7640d33e8f659.tar.gz
enigma2-02226aee689caad4d05e65448ec7640d33e8f659.zip
listboxcontent: add support for pixmaps in list
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/enigma_python.i18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i
index a90e2fef..d0d46723 100644
--- a/lib/python/enigma_python.i
+++ b/lib/python/enigma_python.i
@@ -137,6 +137,7 @@ typedef long time_t;
%immutable pNavigation::m_event;
%include <lib/gdi/font.h>
+%include <lib/gdi/gpixmap.h>
%include <lib/gdi/epoint.h>
%include <lib/gdi/erect.h>
%include <lib/gdi/esize.h>
@@ -172,8 +173,6 @@ typedef long time_t;
%include <lib/driver/etimezone.h>
%include <lib/gdi/lcd.h>
%include <lib/dvb_ci/dvbci_ui.h>
-
-%include <lib/gdi/gpixmap.h>
/************** eptr **************/
%template(eActionMapPtr) ePtr<eActionMap>;
@@ -234,3 +233,18 @@ void setLCDClock(const char*);
%immutable keyPressed;
PSignal1<void,int> &keyPressedSignal();
+%{
+RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
+{
+ ePtr<gPixmap> *res;
+
+ res = 0;
+ result = 0;
+ if (SWIG_Python_ConvertPtr(obj, (void **)&res, SWIGTYPE_p_ePtrTgPixmap_t, SWIG_POINTER_EXCEPTION | 0))
+ return -1;
+ if (!res)
+ return -1;
+ result = *res;
+ return 0;
+}
+%}