aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PluginList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-12-13 01:25:52 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-12-13 01:25:52 +0000
commit5db2dc5c63948651b3e4b337d7057cd940ccc644 (patch)
treecdb77048bb1954de6ea7e983302371b33e6f812f /lib/python/Components/PluginList.py
parent7bcaff119363f42cd4263a5e07982de7671734a7 (diff)
downloadenigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.tar.gz
enigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.zip
factor out loadPNG into generic LoadPixmap
Diffstat (limited to 'lib/python/Components/PluginList.py')
-rw-r--r--lib/python/Components/PluginList.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Components/PluginList.py b/lib/python/Components/PluginList.py
index 3a3bef1e..153c61a5 100644
--- a/lib/python/Components/PluginList.py
+++ b/lib/python/Components/PluginList.py
@@ -6,7 +6,8 @@ from MenuList import MenuList
from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
-from enigma import loadPNG, eListboxPythonMultiContent, eListbox, gFont
+from enigma import eListboxPythonMultiContent, eListbox, gFont
+from Tools.LoadPixmap import LoadPixmap
def PluginEntryComponent(plugin):
res = [ plugin ]
@@ -15,7 +16,7 @@ def PluginEntryComponent(plugin):
res.append(MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description))
if plugin.icon is None:
- png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "plugin.png"))
+ png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "plugin.png"))
else:
png = plugin.icon
res.append(MultiContentEntryPixmapAlphaTest(pos=(10, 5), size=(100, 40), png = png))
@@ -37,7 +38,7 @@ def PluginDownloadComponent(plugin, name):
res.append(MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description))
if plugin.icon is None:
- png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "plugin.png"))
+ png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "plugin.png"))
else:
png = plugin.icon
res.append(MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png))