X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/3b5048babf7e8df97b8d0267543c7fa47ec7f21d..16f9d918460fb645b3e64c65437fda2161abd93c:/lib/python/Components/GUISkin.py diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index b7cfb430..ce4d397d 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -1,7 +1,6 @@ from GUIComponent import GUIComponent from skin import applyAllAttributes from Tools.CList import CList -from Sources.Source import Source class GUISkin: __module__ = __name__ @@ -21,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: @@ -36,14 +40,9 @@ class GUISkin: f() def deleteGUIScreen(self): - seenFakeSource = False for (name, val) in self.items(): - if name == "fake" and isinstance(val, Source): - seenFakeSource = True if isinstance(val, GUIComponent): val.GUIdelete() - if seenFakeSource: - del self["fake"] def close(self): self.deleteGUIScreen()