now its possible to call ePixmap.setPixmap from python without use of
[enigma2.git] / lib / gui / epixmap.cpp
index 70ea9d6..3e396c9 100644 (file)
@@ -19,6 +19,12 @@ void ePixmap::setPixmap(gPixmap *pixmap)
        event(evtChangedPixmap);
 }
 
+void ePixmap::setPixmap(ePtr<gPixmap> &pixmap)
+{
+       m_pixmap = pixmap;
+       event(evtChangedPixmap);
+}
+
 void ePixmap::setPixmapFromFile(const char *filename)
 {
        loadPNG(m_pixmap, filename);
@@ -29,8 +35,8 @@ void ePixmap::setPixmapFromFile(const char *filename)
                return;
        }
        
-               // TODO
-       getDesktop()->makeCompatiblePixmap(*m_pixmap);
+               // TODO: This only works for desktop 0
+       getDesktop(0)->makeCompatiblePixmap(*m_pixmap);
        event(evtChangedPixmap);
 }