git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add 'layers' (in buffered mode, which is not working at the moment).
[enigma2.git]
/
lib
/
python
/
Plugins
/
Plugin.py
diff --git
a/lib/python/Plugins/Plugin.py
b/lib/python/Plugins/Plugin.py
index a2ee9fefad88f78a444b2f12180ac0972d4ddfe0..f6f9b4818a2836966617c8efaa2f61b9760ebe46 100644
(file)
--- a/
lib/python/Plugins/Plugin.py
+++ b/
lib/python/Plugins/Plugin.py
@@
-1,5
+1,5
@@
-from enigma import loadPNG
from Components.config import ConfigSubsection, config
from Components.config import ConfigSubsection, config
+from Tools.LoadPixmap import LoadPixmap
config.plugins = ConfigSubsection()
config.plugins = ConfigSubsection()
@@
-22,7
+22,7
@@
class PluginDescriptor:
WHERE_PLUGINMENU = 2
# argument: session, serviceref (currently selected)
WHERE_MOVIELIST = 3
WHERE_PLUGINMENU = 2
# argument: session, serviceref (currently selected)
WHERE_MOVIELIST = 3
- # argument: menuid. Fnc must return list with menuitems (
2-tuple of name, fnc to call
)
+ # argument: menuid. Fnc must return list with menuitems (
4-tuple of name, fnc to call, entryid or None, weight or None
)
WHERE_MENU = 4
# reason (0: start, 1: end)
WHERE_MENU = 4
# reason (0: start, 1: end)
@@
-63,7
+63,7
@@
class PluginDescriptor:
def updateIcon(self, path):
if type(self.iconstr) is str:
def updateIcon(self, path):
if type(self.iconstr) is str:
- self.icon =
loadPNG
(path + "/" + self.iconstr)
+ self.icon =
LoadPixmap
(path + "/" + self.iconstr)
else:
self.icon = None
else:
self.icon = None