X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0923ac50c8dc0d3f77363adb093b6e7e29f030ed..89247308c18ca8b36b6973f780fd3ae6c0563dfc:/lib/python/Components/GUISkin.py diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 39499c77..ce4d397d 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -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: