eWindow: title change will now invalidate decoration.
authorFelix Domke <tmbinc@elitedvb.net>
Fri, 18 Nov 2005 03:09:19 +0000 (03:09 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Fri, 18 Nov 2005 03:09:19 +0000 (03:09 +0000)
lib/gui/ewindow.cpp
lib/python/Screens/EventView.py

index e637cf2..622e8b0 100644 (file)
@@ -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;
        }
index f7c77e7..bbcf73c 100644 (file)
@@ -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))