aboutsummaryrefslogtreecommitdiff
path: root/skin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-03-15 10:50:29 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-03-15 10:50:29 +0000
commit72089a1844b6b6e820601d00c028b774dc0cbf75 (patch)
tree0d4555b1496075d836c44f37d1df0c09c1a26397 /skin.py
parent792d7967cd9a719a8cdd577a5d1c177db46c8630 (diff)
downloadenigma2-72089a1844b6b6e820601d00c028b774dc0cbf75.tar.gz
enigma2-72089a1844b6b6e820601d00c028b774dc0cbf75.zip
optional pixmap caching
Diffstat (limited to 'skin.py')
-rw-r--r--skin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/skin.py b/skin.py
index 21ec62ae..26c08207 100644
--- a/skin.py
+++ b/skin.py
@@ -106,7 +106,13 @@ def collectAttributes(skinAttributes, node, skin_path_prefix=None, ignore=[]):
skinAttributes.append((attrib, value))
def loadPixmap(path, desktop):
- ptr = LoadPixmap(path, desktop)
+ cached = False
+ option = path.find("#")
+ if option != -1:
+ options = path[option+1:].split(',')
+ path = path[:option]
+ cached = "cached" in options
+ ptr = LoadPixmap(path, desktop, cached)
if ptr is None:
raise SkinError("pixmap file %s not found!" % (path))
return ptr