From: Felix Domke Date: Fri, 20 May 2005 19:21:48 +0000 (+0000) Subject: - add clearBackgroundColor to use default (defined by style) again X-Git-Tag: 2.6.0~5839 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/2e74b767faf7548c6f6aae3a12506d46d3edd6c0 - add clearBackgroundColor to use default (defined by style) again - remove focus debug --- diff --git a/lib/gui/ewidget.cpp b/lib/gui/ewidget.cpp index 2241577e..7586c627 100644 --- a/lib/gui/ewidget.cpp +++ b/lib/gui/ewidget.cpp @@ -153,11 +153,15 @@ void eWidget::destruct() void eWidget::setBackgroundColor(const gRGB &col) { - eDebug("set background color in ewidget!"); m_background_color = col; m_have_background_color = 1; } +void eWidget::clearBackgroundColor() +{ + m_have_background_color = 0; +} + void eWidget::mayKillFocus() { setFocus(0); @@ -264,7 +268,6 @@ int eWidget::event(int event, void *data, void *data2) m_focus_owner = (eWidget*)data; break; case evtFocusLost: - eDebug("unhandled focus lost in %p", this); m_focus_owner = 0; break; default: diff --git a/lib/gui/ewidget.h b/lib/gui/ewidget.h index 9f3df2c0..345977f2 100644 --- a/lib/gui/ewidget.h +++ b/lib/gui/ewidget.h @@ -34,6 +34,7 @@ public: void setStyle(eWindowStyle *style) { m_style = style; } void setBackgroundColor(const gRGB &col); + void clearBackgroundColor(); /* untested code */ int isVisible() { return (m_vis & wVisShow) && ((!m_parent) || m_parent->isVisible()); }