add support for DTV tuning api (not tested yet)
[enigma2.git] / lib / gui / ebutton.cpp
index e24abd666b8c54be700f153d606ef3d3a38a8820..30824df2d28f0d920ac438fcc23756cf39b7ca46 100644 (file)
@@ -2,6 +2,9 @@
 
 eButton::eButton(eWidget *parent): eLabel(parent)
 {
+               /* default to center alignment */
+       m_valign = alignCenter;
+       m_halign = alignCenter;
 }
 
 void eButton::push()
@@ -21,7 +24,7 @@ int eButton::event(int event, void *data, void *data2)
                getStyle(style);
                
                eLabel::event(event, data, data2);
-               style->drawButtonFrame(painter, eRect(ePoint(0, 0), size()));
+               style->drawFrame(painter, eRect(ePoint(0, 0), size()), eWindowStyle::frameButton);
                
                return 0;
        }