diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-11 08:49:47 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-11 08:49:47 +0100 |
| commit | 8c68c9fd6273e5318755e42a9f650d850daebb94 (patch) | |
| tree | c4352a9b3b154a64e6fe61ed67753d683363ac95 /lib/python/Components | |
| parent | 0ffeb4cf114a6706ba629112c070e3d94da98793 (diff) | |
| parent | 4531ea135c84d78d96d66a08b67f1f5e09475c55 (diff) | |
| download | enigma2-8c68c9fd6273e5318755e42a9f650d850daebb94.tar.gz enigma2-8c68c9fd6273e5318755e42a9f650d850daebb94.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 5 | ||||
| -rwxr-xr-x | lib/python/Components/config.py | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index 3188469a..8f4255b8 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -1,4 +1,5 @@ -from config import config, ConfigSlider, ConfigSelection, ConfigYesNo, ConfigEnableDisable, ConfigSubsection, ConfigBoolean +from config import config, ConfigSlider, ConfigSelection, ConfigYesNo, \ + ConfigEnableDisable, ConfigSubsection, ConfigBoolean, ConfigNumber from enigma import eAVSwitch, getDesktop from SystemInfo import SystemInfo @@ -110,6 +111,8 @@ def InitAVSwitch(): config.av.tvsystem = ConfigSelection(choices = {"pal": _("PAL"), "ntsc": _("NTSC"), "multinorm": _("multinorm")}, default="pal") config.av.wss = ConfigEnableDisable(default = True) config.av.defaultac3 = ConfigYesNo(default = False) + config.av.generalAC3delay = ConfigNumber(default = 0) + config.av.generalPCMdelay = ConfigNumber(default = 0) config.av.vcrswitch = ConfigEnableDisable(default = False) iAVSwitch = AVSwitch() diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 4cc40633..24d39cba 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1029,6 +1029,13 @@ class ConfigNumber(ConfigText): value = property(getValue, setValue) _value = property(getValue, setValue) + def isChanged(self): + sv = self.saved_value + strv = self.tostring(self.value) + if sv is None and strv == self.default: + return False + return strv != sv + def conform(self): pos = len(self.text) - self.marked_pos self.text = self.text.lstrip("0") |
