fix translations
[enigma2.git] / lib / python / Components / MovieList.py
index 2e8614729c4873f69ee7fd2fc71c83350dc1b98d..970180cd243ec1a685ce8ef2b9dec45c28045424 100644 (file)
@@ -61,19 +61,14 @@ class MovieList(HTMLComponent, GUIComponent):
 
        def getCurrent(self):
                l = self.l.getCurrentSelection()
-               if l is not None:
-                       return self.l.getCurrentSelection()[0]
-               return None
-
-       def GUIcreate(self, parent):
-               self.instance = eListbox(parent)
-               self.instance.setContent(self.l)
-               self.instance.setItemHeight(75)
-       
-       def GUIdelete(self):
-               self.instance.setContent(None)
-               self.instance = None
+               return l and l[0]
 
+       GUI_WIDGET = eListbox
+       
+       def postWidgetCreate(self, instance):
+               instance.setContent(self.l)
+               instance.setItemHeight(75)
+       
        def reload(self, root = None):
                if root is not None:
                        self.load(root)