- add clearBackgroundColor to use default (defined by style) again
authorFelix Domke <tmbinc@elitedvb.net>
Fri, 20 May 2005 19:21:48 +0000 (19:21 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Fri, 20 May 2005 19:21:48 +0000 (19:21 +0000)
 - remove focus debug

lib/gui/ewidget.cpp
lib/gui/ewidget.h

index 2241577..7586c62 100644 (file)
@@ -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:
index 9f3df2c..345977f 100644 (file)
@@ -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()); }