X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/92f02a487b375ae936e7fa74b060bee9d495a106..e854296fa3301e16885ff959bb083b0f18919c44:/lib/gui/ewindow.cpp diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index e637cf22..06827a9e 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -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; }