service: add sort of servicelist including all required layers
[enigma2.git] / lib / python / Components / ServiceName.py
index c96b79f..c6dcbb7 100644 (file)
@@ -1,6 +1,7 @@
 from PerServiceDisplay import *
 
-from enigma import pNavigation, iServiceInformationPtr
+#from enigma import pNavigation, iServiceInformationPtr
+from enigma import *
 
 class ServiceName(PerServiceDisplay):
        def __init__(self, navcore):
@@ -11,12 +12,15 @@ class ServiceName(PerServiceDisplay):
                        })
 
        def newService(self):
-               info = iServiceInformationPtr()
                service = self.navcore.getCurrentService()
                
-               if service != None:
-                       if not service.info(info):
+               print service
+               
+               if service is not None:
+                       info = service.info()
+                       if info is not None:
                                self.setText(info.getName())
+                               setLCD(info.getName())
        
        def stopEvent(self):
                        self.setText("");