From 9f4dcf1240c454e2d6b86420d38b53cb12370323 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 20:44:02 +0200 Subject: [PATCH] Get/Set announcements flags --- src/config-gconf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/config-gconf.c b/src/config-gconf.c index 81058b8..0af66a5 100644 --- a/src/config-gconf.c +++ b/src/config-gconf.c @@ -310,6 +310,11 @@ gconf_client_set_int(gconf_client, GCONF_KEY_DRAW_WIDTH, _draw_width, NULL); /* Save Announce Advance Notice Ratio. */ gconf_client_set_int(gconf_client, GCONF_KEY_ANNOUNCE_NOTICE, _announce_notice_ratio, NULL); +/* Set announcement flags */ +gconf_client_set_bool(gconf_client, GCONF_KEY_ANNOUNCE_WAYPOINTS, _announce_waypoints, NULL); +gconf_client_set_bool(gconf_client, GCONF_KEY_ANNOUNCE_OVERSPEED, _announce_overspeed, NULL); +gconf_client_set_bool(gconf_client, GCONF_KEY_ANNOUNCE_DESTINATION, _announce_destination, NULL); + /* Save Enable Voice flag. */ gconf_client_set_bool(gconf_client, GCONF_KEY_ENABLE_VOICE, _enable_voice, NULL); @@ -474,13 +479,17 @@ _dest.valid=FALSE; /* Get Announce Advance Notice - Default is 30. */ _announce_notice_ratio=mapper_gconf_get_int(GCONF_KEY_ANNOUNCE_NOTICE, 8); +_announce_waypoints=mapper_gconf_get_boolean(GCONF_KEY_ANNOUNCE_WAYPOINTS, TRUE); +_announce_overspeed=mapper_gconf_get_boolean(GCONF_KEY_ANNOUNCE_OVERSPEED, FALSE); +_announce_destination=mapper_gconf_get_boolean(GCONF_KEY_ANNOUNCE_DESTINATION, FALSE); + /* Get Enable Voice flag. Default is TRUE. */ _enable_voice=mapper_gconf_get_boolean(GCONF_KEY_ENABLE_VOICE, TRUE); _voice_pitch=mapper_gconf_get_bound_int(GCONF_KEY_VOICE_PITCH, 50, 10, 99); _voice_speed=mapper_gconf_get_bound_int(GCONF_KEY_VOICE_SPEED, 120, 80, 370); /* Get Always Keep On flag. Default is FALSE. */ -_always_keep_on =mapper_gconf_get_boolean(GCONF_KEY_ALWAYS_KEEP_ON, FALSE); +_always_keep_on=mapper_gconf_get_boolean(GCONF_KEY_ALWAYS_KEEP_ON, FALSE); filter.enabled = gconf_client_get_bool(gconf_client, GCONF_KEY_GPS_FILTER, NULL); filter.hdop = gconf_client_get_float(gconf_client, GCONF_KEY_GPS_FILTER_HDOP, NULL); -- 2.39.5