diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-03-15 10:50:29 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-03-15 10:50:29 +0000 |
| commit | 72089a1844b6b6e820601d00c028b774dc0cbf75 (patch) | |
| tree | 0d4555b1496075d836c44f37d1df0c09c1a26397 /skin.py | |
| parent | 792d7967cd9a719a8cdd577a5d1c177db46c8630 (diff) | |
| download | enigma2-72089a1844b6b6e820601d00c028b774dc0cbf75.tar.gz enigma2-72089a1844b6b6e820601d00c028b774dc0cbf75.zip | |
optional pixmap caching
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
