[empathy: 52/59] idle: don't hardcode 10 seconds as the "just connected" time



commit a44cb2b8c74dab9135448dfa04a45c624cb59611
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Fri Oct 30 10:26:05 2009 +0000

    idle: don't hardcode 10 seconds as the "just connected" time
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 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 6c6e333..d4bd224 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]