remove some debug prints
[enigma2.git] / lib / gui / ewindow.cpp
index e637cf22078753588c0f6131301d8d11949af7e5..06827a9eede6cefff82df4cd64ef8911c7e33edd 100644 (file)
@@ -33,6 +33,7 @@ eWindow::eWindow(eWidgetDesktop *desktop): eWidget(0)
 eWindow::~eWindow()
 {
        getDesktop()->removeRootWidget(this);
+       m_child->destruct();
 }
 
 void eWindow::setTitle(const std::string &string)
@@ -43,6 +44,11 @@ void eWindow::setTitle(const std::string &string)
        event(evtTitleChanged);
 }
 
+std::string eWindow::getTitle() const
+{
+       return m_title;
+}
+
 void eWindow::setFlag(int flags)
 {
        m_flags |= flags;
@@ -86,6 +92,12 @@ int eWindow::event(int event, void *data, void *data2)
                }
                return 0;
        }
+       case evtTitleChanged:
+                       /* m_visible_region contains, in contrast to m_visible_with_childs,
+                          only the decoration. though repainting the whole decoration is bad,
+                          repainting the whole window is even worse. */
+               invalidate(m_visible_region);
+               break;
        default:
                break;
        }