- add missing TextInput component
[enigma2.git] / lib / gui / ewidgetdesktop.cpp
index 8c489eb3afccc890cd8561c8cc454dcd8d4a74ab..24fb334b5ec88ed9dd6fdf23b064620181697fc7 100644 (file)
@@ -55,7 +55,7 @@ void eWidgetDesktop::invalidate(const gRegion &region)
        m_dirty_region |= region;
 }
 
-void eWidgetDesktop::setBackgroundColor(gColor col)
+void eWidgetDesktop::setBackgroundColor(gRGB col)
 {
        m_background_color = col;
        
@@ -70,6 +70,13 @@ void eWidgetDesktop::setBackgroundColor(gColor col)
        }
 }
 
+void eWidgetDesktop::setPalette(gPixmap &pm)
+{
+       ASSERT(m_dc);
+       gPainter painter(m_dc);
+       painter.setPalette(&pm);
+}
+
 void eWidgetDesktop::paint()
 {
        gPainter painter(m_dc);