diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2009-10-30 18:26:05 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2009-10-30 18:26:05 +0800 |
commit | a44cb2b8c74dab9135448dfa04a45c624cb59611 (patch) | |
tree | a4a3e2a332a9e9d39e0e4dccf1188eaa352787a7 /libempathy/empathy-idle.c | |
parent | 0e5b0eca677e4aa60cebdaec8e289192b39b5017 (diff) | |
download | gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar.gz gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar.bz2 gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar.lz gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar.xz gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.tar.zst gsoc2013-empathy-a44cb2b8c74dab9135448dfa04a45c624cb59611.zip |
idle: don't hardcode 10 seconds as the "just connected" time
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy/empathy-idle.c')
-rw-r--r-- | libempathy/empathy-idle.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index 6c6e33351..d4bd224d8 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -40,6 +40,10 @@ /* Number of seconds before entering extended autoaway. */ #define EXT_AWAY_TIME (30*60) +/* Number of seconds to consider an account in the "just connected" state + * for. */ +#define ACCOUNT_IS_JUST_CONNECTED_SECONDS 10 + #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyIdle) typedef struct { DBusGProxy *gs_proxy; @@ -743,5 +747,5 @@ empathy_idle_account_is_just_connected (EmpathyIdle *idle, g_get_current_time (&val); - return (val.tv_sec - t) < 10; + return (val.tv_sec - t) < ACCOUNT_IS_JUST_CONNECTED_SECONDS; } |