add entryid to WHERE_MENU, add entryids in local plugins (patch by Moritz Venn, 005_e...
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 7 Oct 2007 10:37:06 +0000 (10:37 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 7 Oct 2007 10:37:06 +0000 (10:37 +0000)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
lib/python/Plugins/Plugin.py
lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py
lib/python/Screens/Menu.py

index 3207c09..7efd33e 100644 (file)
@@ -707,7 +707,7 @@ def main(session, **kwargs):
 
 def menu(menuid, **kwargs):
        if menuid == "mainmenu":
-               return [(_("Media player"), main)]
+               return [(_("Media player"), main, "media_player")]
        return []
 
 def filescan_open(list, session, **kwargs):
index a2ee9fe..b388672 100644 (file)
@@ -22,7 +22,7 @@ class PluginDescriptor:
        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 (3-tuple of name, fnc to call, entryid or None)
        WHERE_MENU = 4
        
        # reason (0: start, 1: end)
index 048722c..4576481 100644 (file)
@@ -569,7 +569,7 @@ def PositionerMain(session, **kwargs):
 
 def PositionerSetupStart(menuid, **kwargs):
        if menuid == "scan":
-               return [(_("Positioner setup"), PositionerMain)]
+               return [(_("Positioner setup"), PositionerMain, "positioner_setup")]
        else:
                return []
 
index 77c4d0a..17f8fa2 100644 (file)
@@ -61,7 +61,7 @@ def SecSetupStart(menuid):
        # only show if DVB-S frontends are available
        for slot in nimmgr.nim_slots:
                if slot.isCompatible("DVB-S"):
-                       return [(_("Satellite Equipment Setup"), SecSetupMain)]
+                       return [(_("Satellite Equipment Setup"), SecSetupMain, "satellite_equipment_setup")]
 
        return [ ]
 
index 9ad1130..fc7855f 100644 (file)
@@ -272,7 +272,7 @@ def SatfinderMain(session, **kwargs):
 
 def SatfinderStart(menuid, **kwargs):
        if menuid == "scan":
-               return [(_("Satfinder"), SatfinderMain)]
+               return [(_("Satfinder"), SatfinderMain, "satfinder")]
        else:
                return []
 
index ecebe76..eeebf70 100755 (executable)
@@ -131,7 +131,7 @@ def SkinSelMain(session, **kwargs):
 
 def SkinSelSetup(menuid, **kwargs):
        if menuid == "system":
-               return [("Skin...", SkinSelMain)]
+               return [("Skin...", SkinSelMain, "skin_selector")]
        else:
                return []
 
index 6ea0f64..2b8ac05 100644 (file)
@@ -188,7 +188,7 @@ class Menu(Screen):
                if menuID is not None:
                        # plugins
                        for l in plugins.getPluginsForMenu(menuID):
-                               list.append((l[0], boundFunction(l[1], self.session)))
+                               list.append((l[0], boundFunction(l[1], self.session), l[2]))
 
                # for the skin: first try a menu_<menuID>, then Menu
                self.skinName = [ ]