git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fire cuesheet changed on load
[enigma2.git]
/
skin.py
diff --git
a/skin.py
b/skin.py
index 922b3d7e71af9986e64f4c9988344cd2636bc6e2..5f27acca4d8b179ddd6cd55aa23457dbdc29aa8e 100644
(file)
--- a/
skin.py
+++ b/
skin.py
@@
-72,6
+72,7
@@
def applySingleAttribute(guiObject, desktop, attrib, value):
guiObject.setZPosition(int(value))
elif attrib == "pixmap":
ptr = loadPNG(value)
guiObject.setZPosition(int(value))
elif attrib == "pixmap":
ptr = loadPNG(value)
+ # that __deref__ still scares me!
desktop.makeCompatiblePixmap(ptr.__deref__())
guiObject.setPixmap(ptr.__deref__())
# guiObject.setPixmapFromFile(value)
desktop.makeCompatiblePixmap(ptr.__deref__())
guiObject.setPixmap(ptr.__deref__())
# guiObject.setPixmapFromFile(value)
@@
-135,6
+136,12
@@
def applySingleAttribute(guiObject, desktop, attrib, value):
}[value])
elif attrib == "enableWrapAround":
guiObject.setWrapAround(True)
}[value])
elif attrib == "enableWrapAround":
guiObject.setWrapAround(True)
+ elif attrib == "pointer":
+ (name, pos) = value.split(':')
+ pos = parsePosition(pos)
+ ptr = loadPNG(name)
+ desktop.makeCompatiblePixmap(ptr.__deref__())
+ guiObject.setPointer(ptr.__deref__(), pos)
elif attrib != 'name':
print "unsupported attribute " + attrib + "=" + value
except int:
elif attrib != 'name':
print "unsupported attribute " + attrib + "=" + value
except int: