fix linked tuners (i hope)
[enigma2.git] / lib / gui / epixmap.cpp
index a0655aa..e4e4acc 100644 (file)
@@ -1,4 +1,6 @@
 #include <lib/gui/epixmap.h>
+#include <lib/gdi/epng.h>
+#include <lib/gui/ewidgetdesktop.h>
 
 ePixmap::ePixmap(eWidget *parent): eWidget(parent)
 {
@@ -10,6 +12,15 @@ void ePixmap::setPixmap(gPixmap *pixmap)
        event(evtChangedPixmap);
 }
 
+void ePixmap::setPixmapFromFile(const char *filename)
+{
+       loadPNG(m_pixmap, filename);
+               
+               // TODO
+       getDesktop()->makeCompatiblePixmap(*m_pixmap);
+       event(evtChangedPixmap);
+}
+
 int ePixmap::event(int event, void *data, void *data2)
 {
        switch (event)
@@ -20,7 +31,7 @@ int ePixmap::event(int event, void *data, void *data2)
                
                getStyle(style);
                
-               eWidget::event(event, data, data2);
+//             eWidget::event(event, data, data2);
                
                gPainter &painter = *(gPainter*)data2;
                if (m_pixmap)