aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2004-08-18 03:54:29 +0000
committervektor <devnull@localhost>2004-08-18 03:54:29 +0000
commit20f0d56d0b7f1484aee9b34192e873bd12f11552 (patch)
treeac066017b8aed22bad04647f252906e31aafc72c /src/tvtimeconf.c
parent5e2c889d112d312ab93c82580f231adfc314a539 (diff)
17 Aug 2004 Billy Biggs <vektor@dumbterm.net>
* tvtime/src/tvtime.c: Save the state of always-on-top across shutdown of tvtime. * tvtime/src/tvtimeconf.c: Implementation of the AlwaysOnTop config file parameter. * tvtime/src/tvtimeconf.h: Added the API to get the setting. * tvtime/docs/tvtime.xml.5: Document the new config file parameter. * tvtime/docs/html/default.tvtime.xml: Document the new config file parameter. * tvtime/ChangeLog: Note this in the ChangeLog.
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 19e2290..5a1ce59 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -56,6 +56,7 @@ struct config_s
int aspect;
int debug;
int fullscreen;
+ int alwaysontop;
int priority;
int ntsc_mode;
int send_fields;
@@ -294,6 +295,10 @@ static void parse_option( config_t *ct, xmlNodePtr node )
ct->fullscreen = atoi( curval );
}
+ if( !xmlStrcasecmp( name, BAD_CAST "AlwaysOnTop" ) ) {
+ ct->alwaysontop = atoi( curval );
+ }
+
if( !xmlStrcasecmp( name, BAD_CAST "FramerateMode" ) ) {
ct->framerate = atoi( curval );
}
@@ -682,6 +687,7 @@ config_t *config_new( void )
ct->aspect = 0;
ct->debug = 0;
ct->fullscreen = 0;
+ ct->alwaysontop = 0;
ct->priority = -19;
ct->ntsc_mode = 0;
ct->send_fields = 0;
@@ -1458,6 +1464,11 @@ int config_get_fullscreen( config_t *ct )
return ct->fullscreen;
}
+int config_get_alwaysontop( config_t *ct )
+{
+ return ct->alwaysontop;
+}
+
int config_get_priority( config_t *ct )
{
return ct->priority;

Privacy Policy