]> git.0d.be Git - empathy.git/commitdiff
idle: don't hardcode 10 seconds as the "just connected" time
authorJonny Lamb <jonnylamb@gnome.org>
Fri, 30 Oct 2009 10:26:05 +0000 (10:26 +0000)
committerJonny Lamb <jonnylamb@gnome.org>
Fri, 30 Oct 2009 10:26:05 +0000 (10:26 +0000)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy/empathy-idle.c

index 6c6e333511195300521057c792bf17ac6482321c..d4bd224d8f8227ee151b444f02c11b669eefce60 100644 (file)
 /* 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;
 }