From 821099592d721f82eeb92c32c7e8e60847c37294 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 18 Nov 2005 03:09:19 +0000 Subject: [PATCH] eWindow: title change will now invalidate decoration. --- lib/gui/ewindow.cpp | 6 ++++++ lib/python/Screens/EventView.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index e637cf22..622e8b0a 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -86,6 +86,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; } diff --git a/lib/python/Screens/EventView.py b/lib/python/Screens/EventView.py index f7c77e71..bbcf73cd 100644 --- a/lib/python/Screens/EventView.py +++ b/lib/python/Screens/EventView.py @@ -52,7 +52,7 @@ class EventView(Screen): if len(text) > 0: text = text + '\n\n' text = text + ext -# self.session.currentDialog.instance.setTitle(event.getEventName()) + self.session.currentDialog.instance.setTitle(event.getEventName()) self["epg_description"].setText(text) self["datetime"].setText(event.getBeginTimeString()) self["duration"].setText(_("%d min")%(event.getDuration()/60)) -- 2.30.2