summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-10 15:34:23 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-10 15:34:23 +0200
commitdeb96b372eabf2bc641c05e6beb20671d1047cc6 (patch)
tree75bd31a5c589afe4f4e04cb6be7c392e48ad379d /menu.c
parent360d8fe6b1faeea134f7a18d45ebbe69fd685be6 (diff)
downloadvdr-deb96b372eabf2bc641c05e6beb20671d1047cc6.tar.gz
vdr-deb96b372eabf2bc641c05e6beb20671d1047cc6.tar.bz2
The option "Setup/Miscellaneous/Show channel names with source" can now be set to "type" or "full"
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 7511a9ec..1cb389e0 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.34 2017/06/10 09:52:14 kls Exp $
+ * $Id: menu.c 4.35 2017/06/10 15:13:00 kls Exp $
*/
#include "menu.h"
@@ -4010,6 +4010,7 @@ void cMenuSetupReplay::Store(void)
class cMenuSetupMisc : public cMenuSetupBase {
private:
+ const char *showChannelNamesWithSourceTexts[3];
cStringList svdrpServerNames;
void Set(void);
public:
@@ -4020,6 +4021,9 @@ public:
cMenuSetupMisc::cMenuSetupMisc(void)
{
SetMenuCategory(mcSetupMisc);
+ showChannelNamesWithSourceTexts[0] = tr("off");
+ showChannelNamesWithSourceTexts[1] = tr("type");
+ showChannelNamesWithSourceTexts[2] = tr("full");
SetSection(tr("Miscellaneous"));
Set();
}
@@ -4049,7 +4053,7 @@ void cMenuSetupMisc::Set(void)
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Volume steps"), &data.VolumeSteps, 5, 255));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Volume linearize"), &data.VolumeLinearize, -20, 20));
Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$Channels wrap"), &data.ChannelsWrap));
- Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$Show channel names with source"), &data.ShowChannelNamesWithSource));
+ Add(new cMenuEditStraItem(tr("Setup.Miscellaneous$Show channel names with source"), &data.ShowChannelNamesWithSource, 3, showChannelNamesWithSourceTexts));
Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$Emergency exit"), &data.EmergencyExit));
SetCurrent(Get(current));
Display();