aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/EpgList.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 20:40:05 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 20:40:05 +0000
commit8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f (patch)
treec382ddc39fdc759befd9e281bcc011e1dd579e9d /lib/python/Components/EpgList.py
parent6f73e6abddf4170357c490966d0e1c622eb376f5 (diff)
downloadenigma2-8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f.tar.gz
enigma2-8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f.zip
unlink some cyclic dependencys to get garbage collection working
Diffstat (limited to 'lib/python/Components/EpgList.py')
-rw-r--r--lib/python/Components/EpgList.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py
index 97ed0a03..e0d5227c 100644
--- a/lib/python/Components/EpgList.py
+++ b/lib/python/Components/EpgList.py
@@ -99,12 +99,16 @@ class EPGList(HTMLComponent, GUIComponent):
pass
GUI_WIDGET = eListbox
-
+
def postWidgetCreate(self, instance):
instance.setWrapAround(True)
instance.selectionChanged.get().append(self.selectionChanged)
instance.setContent(self.l)
+ def preWidgetRemove(self, instance):
+ instance.selectionChanged.get().remove(self.selectionChanged)
+ instance.setContent(None)
+
def recalcEntrySize(self):
esize = self.l.getItemSize()
self.l.setFont(0, gFont("Regular", 22))