aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-08-13 17:02:00 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-08-13 17:02:00 +0000
commit9ce6ca4f63e908ef0ed64c3cf9d02ed307c2da46 (patch)
tree7251658114344f5295ae33d6c41315752902ca5f /lib/python/Components
parentea77a638b58160db057dd260cc2b58a4759dacbb (diff)
downloadenigma2-9ce6ca4f63e908ef0ed64c3cf9d02ed307c2da46.tar.gz
enigma2-9ce6ca4f63e908ef0ed64c3cf9d02ed307c2da46.zip
Alter behavior of the zero button in PiP mode. The exact behavior may be
configured by changing the value of the 'Behaviour of 0 key in PiP-mode' property in the settings menu. Possible values are: - standard the behavior of the zero button is remains as is (switch to last channel) - swap the zero button swaps the pip service with the active - swap and stop the zero button swaps the pip service with the active and then turns pip off - stop turns pip off Patch by John Holland <johnbock@i-have-a-dreambox.com>, with some modifications.
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/UsageConfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index 507696f0..d122a4f7 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -25,6 +25,10 @@ def InitUsageConfig():
("do not change", _("do not change")), ("off", _("off")), ("on", _("on")) ])
config.usage.self_defined_seek = ConfigInteger(default=10, limits=(1,9999))
+ config.usage.pip_zero_button = ConfigSelection(default = "standard", choices = [
+ ("standard", _("standard")), ("swap", _("swap PiP and main picture")),
+ ("swapstop", _("move PiP to main picture")), ("stop", _("stop PiP")) ])
+
def setHDDStandby(configElement):
os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc")
config.usage.hdd_standby.addNotifier(setHDDStandby)