aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-03-30 02:02:50 +0000
committervektor <devnull@localhost>2005-03-30 02:02:50 +0000
commita5e7f3c529ab2a797e704cf0c0e202c128749d68 (patch)
tree669b555ed4517109e3367782a9419e5d059e5676 /src/tvtimeconf.c
parent82df6a92692e7cef089f051e8cecd1ad8dcc89eb (diff)
* tvtime/src/tvtimeconf.c: Add a new config file option ShowTaglines
to disable showing the taglines in the window title bar. * tvtime/src/tvtimeconf.h: Accessor for the config option. * tvtime/src/tvtime.c: Don't show the taglines if the user hates us.
Diffstat (limited to 'src/tvtimeconf.c')
-rw-r--r--src/tvtimeconf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tvtimeconf.c b/src/tvtimeconf.c
index 686c0d2..fcadd68 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -76,6 +76,7 @@ struct config_s
int unmute_volume;
int muted;
int mute_on_exit;
+ int show_taglines;
int keymap[ 8 * MAX_KEYSYMS ];
char *keymap_arg[ 8 * MAX_KEYSYMS ];
@@ -243,6 +244,10 @@ static void parse_option( config_t *ct, xmlNodePtr node )
ct->mute_on_exit = atoi( curval );
}
+ if( !xmlStrcasecmp( name, BAD_CAST "ShowTaglines" ) ) {
+ ct->show_taglines = atoi( curval );
+ }
+
if( !xmlStrcasecmp( name, BAD_CAST "ShowCC" ) ) {
ct->cc = atoi( curval );
}
@@ -718,6 +723,7 @@ config_t *config_new( void )
ct->unmute_volume = -1;
ct->muted = 0;
ct->mute_on_exit = 1;
+ ct->show_taglines = 1;
memset( ct->keymap, 0, sizeof( ct->keymap ) );
memset( ct->keymap_arg, 0, sizeof( ct->keymap_arg ) );
@@ -1630,3 +1636,8 @@ int config_get_mute_on_exit( config_t *ct )
return ct->mute_on_exit;
}
+int config_get_show_taglines( config_t *ct )
+{
+ return ct->show_taglines;
+}
+

Privacy Policy