summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-27 16:46:45 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-27 16:46:45 -0300
commit3ee81cab2ed66b7f3d4fbd6ba6676d5d9448d6dc (patch)
tree459dc5218f3b944a638a16361a422e5ba3d7857d /src/main.c
parent395c910980394868a3c2d14e90e4f55988c7663d (diff)
Introduce PairableTimeout Property and fix use of g_timeout_add.
PairableTimeout work similarly to DiscoverableTimeout where the user application can set the amount of time to stay in Pairable. It also fixes the use of g_timeout_add to g_timeout_add_seconds for both PairableTimeout and DiscoverableTimeout.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 407a1122..2b41e6b9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -127,6 +127,17 @@ static void parse_config(GKeyFile *config)
}
val = g_key_file_get_integer(config, "General",
+ "PairableTimeout",
+ &err);
+ if (err) {
+ debug("%s", err->message);
+ g_clear_error(&err);
+ } else {
+ debug("pairto=%d", val);
+ main_opts.pairto = val;
+ }
+
+ val = g_key_file_get_integer(config, "General",
"PageTimeout",
&err);
if (err) {