update da,fi language
[enigma2.git] / lib / python / Components / GUISkin.py
index 0cf4d02753b7c436679851a64348091bb703ab0a..ce4d397d07df59f8808498f45ee5eed8b6808c2b 100644 (file)
@@ -20,7 +20,12 @@ class GUISkin:
                        val = self[key]
                        if isinstance(val, GUIComponent):
                                val.GUIcreate(parent)
-                               if not val.applySkin(desktop):
+                               depr = val.deprecationInfo
+                               if val.applySkin(desktop):
+                                       if depr:
+                                               print "WARNING: OBSOLETE COMPONENT '%s' USED IN SKIN. USE '%s' INSTEAD!" % (key, depr[0])
+                                               print "OBSOLETE COMPONENT WILL BE REMOVED %s, PLEASE UPDATE!" % (depr[1])
+                               elif not depr:
                                        print "warning, skin is missing element", key, "in", self
 
                for w in self.additionalWidgets:
@@ -35,14 +40,9 @@ class GUISkin:
                                f()
 
        def deleteGUIScreen(self):
-               seenFakeSource = False
                for (name, val) in self.items():
-                       if name == "fake":
-                               seenFakeSource = True
                        if isinstance(val, GUIComponent):
                                val.GUIdelete()
-               if seenFakeSource:
-                       del self["fake"]
 
        def close(self):
                self.deleteGUIScreen()