Show type of entry in cut list (and also color-code them)
[enigma2.git] / skin.py
diff --git a/skin.py b/skin.py
index bdd621a74e4ef56aefda95fdc911494bf470243f..03fe96bb58168f401a1fcc948e193238b3b84dc3 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -147,7 +147,7 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1)
                        try:
                                guiObject.setOrientation(*
                                        { "orVertical": (guiObject.orVertical, False),
-                                               "orTopToBottom": (guiObject.olVertical, False),
+                                               "orTopToBottom": (guiObject.orVertical, False),
                                                "orBottomToTop": (guiObject.orVertical, True),
                                                "orHorizontal": (guiObject.orHorizontal, False),
                                                "orLeftToRight": (guiObject.orHorizontal, False),
@@ -274,7 +274,7 @@ def loadSingleSkinData(desktop, skin, path_prefix):
                                colorNames[name] = parseColor(color)
                                #print "Color:", name, color
                        else:
-                               raise ("need color and name, got %s %s" % (name, color))
+                               raise SkinError("need color and name, got %s %s" % (name, color))
 
        for c in skin.findall("fonts"):
                for font in c.findall("font"):
@@ -335,7 +335,7 @@ def loadSingleSkinData(desktop, skin, path_prefix):
                        try:
                                style.setColor(eWindowStyleSkinned.__dict__["col" + type], color)
                        except:
-                               raise ("Unknown color %s" % (type))
+                               raise SkinError("Unknown color %s" % (type))
                                #pass
 
                        #print "  color:", type, color