diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:46:45 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:46:45 -0300 |
commit | 3ee81cab2ed66b7f3d4fbd6ba6676d5d9448d6dc (patch) | |
tree | 459dc5218f3b944a638a16361a422e5ba3d7857d /src/main.c | |
parent | 395c910980394868a3c2d14e90e4f55988c7663d (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.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) { |