summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
commit45d261fb7448daed79b9873e0929386dfee0445f (patch)
tree2487555b5fc227cdb26c930a828b8213938883d8 /config.c
parent1912d36f00b53ad33155f5788985f23ead69a873 (diff)
downloadvdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.gz
vdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.bz2
The new setup option "Miscellaneous/Show channel names with source" can be used to turn on adding the source character to channel names whenever they are displayed
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index 5927c753..56454dfa 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.25 2012/06/13 09:12:53 kls Exp $
+ * $Id: config.c 2.26 2012/06/17 12:27:07 kls Exp $
*/
#include "config.h"
@@ -462,6 +462,7 @@ cSetup::cSetup(void)
DeviceBondings = "";
InitialVolume = -1;
ChannelsWrap = 0;
+ ShowChannelNamesWithSource = 0;
EmergencyExit = 1;
}
@@ -657,6 +658,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "InitialVolume")) InitialVolume = atoi(Value);
else if (!strcasecmp(Name, "DeviceBondings")) DeviceBondings = Value;
else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value);
+ else if (!strcasecmp(Name, "ShowChannelNamesWithSource")) ShowChannelNamesWithSource = atoi(Value);
else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value);
else
return false;
@@ -755,6 +757,7 @@ bool cSetup::Save(void)
Store("InitialVolume", InitialVolume);
Store("DeviceBondings", DeviceBondings);
Store("ChannelsWrap", ChannelsWrap);
+ Store("ShowChannelNamesWithSource", ShowChannelNamesWithSource);
Store("EmergencyExit", EmergencyExit);
Sort();