MediaPlayer/plugin.py: use correct InfoBarSubtitleSupport instance for Subtitle screen
[enigma2.git] / skin.py
diff --git a/skin.py b/skin.py
index d44e5033606301dc306a4024cabec78823661022..a76f7942c0897e8dd1de8d19d6db5196bd6bedca 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -145,6 +145,8 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1)
                                  "off": 0,
                                  "blend": 2,
                                }[value])
+               elif attrib == "scale":
+                       guiObject.setScale(1)
                elif attrib == "orientation": # used by eSlider
                        try:
                                guiObject.setOrientation(*
@@ -316,7 +318,7 @@ def loadSingleSkinData(desktop, skin, path_prefix):
                        else:
                                shadowColor = gRGB(0)
                        shadowOffset = parsePosition(get_attr("shadowOffset"), scale)
-                       face = eval("eSubtitleWidget.%s" % get_attr("name"))
+                       face = eSubtitleWidget.__dict__[get_attr("name")]
                        eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset)
 
        for windowstyle in skin.findall("windowstyle"):