aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ChannelSelection.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-22 15:50:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-22 15:50:51 +0000
commitd4ac90a0740a22c86e8f18a49a594e9a8f3746df (patch)
treefbf3e60ffb40575bde8961ab202f9c3a3ddc555c /lib/python/Screens/ChannelSelection.py
parent3b42e4b203eb2295992e75553cb9f5bc5ac0c485 (diff)
downloadenigma2-d4ac90a0740a22c86e8f18a49a594e9a8f3746df.tar.gz
enigma2-d4ac90a0740a22c86e8f18a49a594e9a8f3746df.zip
add "show transponder" info to service context menu in channellist
Diffstat (limited to 'lib/python/Screens/ChannelSelection.py')
-rw-r--r--lib/python/Screens/ChannelSelection.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py
index 9cbb4221..db2789d0 100644
--- a/lib/python/Screens/ChannelSelection.py
+++ b/lib/python/Screens/ChannelSelection.py
@@ -15,6 +15,7 @@ from Components.Input import Input
from Components.ParentalControl import parentalControl
from Screens.InputBox import InputBox, PinInput
from Screens.MessageBox import MessageBox
+from Screens.ServiceInfo import ServiceInfo
from ServiceReference import ServiceReference
from Tools.BoundFunction import boundFunction
from re import *
@@ -81,6 +82,8 @@ class ChannelContextMenu(Screen):
inBouquet = csel.getMutableList() is not None
haveBouquets = config.usage.multibouquet.value
+ if not (len(current_sel_path) or current_sel_flags & eServiceReference.isDirectory):
+ menu.append((_("show transponder info"), self.showServiceInformations))
if csel.bouquet_mark_edit == OFF and not csel.movemode:
if not inBouquetRootList:
isPlayable = not (current_sel_flags & (eServiceReference.isMarker|eServiceReference.isDirectory))
@@ -146,7 +149,10 @@ class ChannelContextMenu(Screen):
def cancelClick(self):
self.close(False)
-
+
+ def showServiceInformations(self):
+ self.session.open( ServiceInfo, self.csel.getCurrentSelection() )
+
def showBouquetInputBox(self):
self.session.openWithCallback(self.bouquetInputCallback, InputBox, title=_("Please enter a name for the new bouquet"), text="bouquetname", maxSize=False, type=Input.TEXT)