aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/ScrollLabel.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-23 11:32:18 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-23 11:32:18 +0000
commitfe0534f76b59b814caca3648933c45d3add31889 (patch)
treea05bb683ae8dfb6c73f48be5940590b9aa6e923d /lib/python/Components/ScrollLabel.py
parentf80cd44acb9f06d348f3b0fb09036d7db7e83b66 (diff)
downloadenigma2-fe0534f76b59b814caca3648933c45d3add31889.tar.gz
enigma2-fe0534f76b59b814caca3648933c45d3add31889.zip
prepare for skin updating and scaling
Diffstat (limited to 'lib/python/Components/ScrollLabel.py')
-rw-r--r--lib/python/Components/ScrollLabel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Components/ScrollLabel.py b/lib/python/Components/ScrollLabel.py
index 253353bb..46d22abc 100644
--- a/lib/python/Components/ScrollLabel.py
+++ b/lib/python/Components/ScrollLabel.py
@@ -13,10 +13,10 @@ class ScrollLabel(HTMLComponent, GUIComponent):
self.pages = None
self.total = None
- def applySkin(self, desktop):
+ def applySkin(self, desktop, parent):
ret = False
if self.skinAttributes is not None:
- skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
+ skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes, parent.scale)
widget_attribs = [ ]
scrollbar_attribs = [ ]
for (attrib, value) in self.skinAttributes:
@@ -24,8 +24,8 @@ class ScrollLabel(HTMLComponent, GUIComponent):
scrollbar_attribs.append((attrib,value))
if attrib.find("transparent") != -1 or attrib.find("backgroundColor") != -1:
widget_attribs.append((attrib,value))
- skin.applyAllAttributes(self.instance, desktop, widget_attribs)
- skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs)
+ skin.applyAllAttributes(self.instance, desktop, widget_attribs, parent.scale)
+ skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs, parent.scale)
ret = True
s = self.long_text.size()
self.instance.move(self.long_text.position())