[empathy: 17/26] empathy-idle: no need to listen to use-conn



commit 363e6b81d004687f286fcd30322e94bd15c14e8f
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Wed Aug 19 15:22:05 2009 +0100

    empathy-idle: no need to listen to use-conn
    
    If use_conn is set to FALSE, then EmpathyConnectivity will signal
    status-change with a new online status of TRUE, which will do the
    right thing.
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

 libempathy/empathy-idle.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 5f38e94..c3e6b01 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -258,22 +258,6 @@ idle_state_change_cb (EmpathyConnectivity *connectivity,
 }
 
 static void
-idle_use_conn_cb (GObject *object,
-		  GParamSpec *pspec,
-		  EmpathyIdle *idle)
-{
-	EmpathyIdlePriv *priv = GET_PRIV (idle);
-
-	if (!empathy_connectivity_get_use_conn (priv->connectivity)) {
-		if (priv->saved_state != TP_CONNECTION_PRESENCE_TYPE_UNSET) {
-			empathy_idle_set_state (idle, priv->saved_state);
-		}
-
-		priv->saved_state = TP_CONNECTION_PRESENCE_TYPE_UNSET;
-	}
-}
-
-static void
 idle_finalize (GObject *object)
 {
 	EmpathyIdlePriv *priv;
@@ -289,8 +273,6 @@ idle_finalize (GObject *object)
 
 	g_signal_handlers_disconnect_by_func (priv->connectivity,
 					      idle_state_change_cb, object);
-	g_signal_handlers_disconnect_by_func (priv->connectivity,
-					      idle_use_conn_cb, object);
 
 	g_object_unref (priv->connectivity);
 
@@ -503,8 +485,6 @@ empathy_idle_init (EmpathyIdle *idle)
 	priv->connectivity = empathy_connectivity_dup_singleton ();
 	g_signal_connect (priv->connectivity, "state-change",
 	    G_CALLBACK (idle_state_change_cb), idle);
-	g_signal_connect (priv->connectivity, "notify::use-conn",
-	    G_CALLBACK (idle_use_conn_cb), idle);
 }
 
 EmpathyIdle *



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