diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-20 15:16:41 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-20 15:16:41 +0000 |
| commit | 781220c0da56eb1ccbed096fc731da9161d654a3 (patch) | |
| tree | 3646c497ebf6b8909f758f12267c56fd0351938c | |
| parent | a572ebf53a8b090484e5976c533b0333c8dde022 (diff) | |
| download | enigma2-781220c0da56eb1ccbed096fc731da9161d654a3.tar.gz enigma2-781220c0da56eb1ccbed096fc731da9161d654a3.zip | |
advertise timeshifting in the infobar
| -rw-r--r-- | data/skin.xml | 2 | ||||
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/data/skin.xml b/data/skin.xml index f12d27bd..b8aa0444 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -206,7 +206,9 @@ <widget name="ButtonGreen" pixmap="/usr/share/enigma2/button_green.png" position="320,132" size="27,12" /> <widget name="ButtonGreenText" position="350,130" size="85,22" font="Regular;14" backgroundColor="blue" transparent="1" /> <widget name="ButtonYellow" pixmap="/usr/share/enigma2/button_yellow.png" position="430,132" size="27,12" /> + <widget name="ButtonYellowText" position="460,130" size="85,22" font="Regular;14" backgroundColor="blue" transparent="1" /> <widget name="ButtonBlue" pixmap="/usr/share/enigma2/button_blue.png" position="540,132" size="27,12" /> + <widget name="ButtonBlueText" position="570,130" size="85,22" font="Regular;14" backgroundColor="blue" transparent="1" /> </screen> <screen name="MoviePlayer" flags="wfNoBorder" position="0,370" size="720,148" title="InfoBar"> diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index fed7287c..e7dbcfb5 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1038,19 +1038,26 @@ class InfoBarAdditionalInfo: self["ButtonRed"] = PixmapConditional(withTimer = False) self["ButtonRed"].setConnect(lambda: harddiskmanager.HDDCount() > 0) - self.onShown.append(self["ButtonRed"].update) + self.onLayoutFinish.append(self["ButtonRed"].update) self["ButtonRedText"] = LabelConditional(text = _("Record"), withTimer = False) self["ButtonRedText"].setConnect(lambda: harddiskmanager.HDDCount() > 0) - self.onShown.append(self["ButtonRedText"].update) + self.onLayoutFinish.append(self["ButtonRedText"].update) self["ButtonGreen"] = Pixmap() self["ButtonGreenText"] = Label(_("Subservices")) self["ButtonYellow"] = PixmapConditional(withTimer = False) - self["ButtonYellow"].setConnect(lambda: False) + self["ButtonYellow"].setConnect(lambda: harddiskmanager.HDDCount() > 0) + self["ButtonYellowText"] = LabelConditional(text = _("Timeshifting"), withTimer = False) + self["ButtonYellowText"].setConnect(lambda: harddiskmanager.HDDCount() > 0) + self.onLayoutFinish.append(self["ButtonYellow"].update) + self.onLayoutFinish.append(self["ButtonYellowText"].update) self["ButtonBlue"] = PixmapConditional(withTimer = False) self["ButtonBlue"].setConnect(lambda: False) + self["ButtonBlueText"] = LabelConditional(text = _("Extensions"), withTimer = False) + self["ButtonBlueText"].setConnect(lambda: False) + self.onLayoutFinish.append(self["ButtonBlueText"].update) self.session.nav.event.append(self.gotServiceEvent) # we like to get service events |
