[Telepathy-commits] [telepathy-mission-control/master] Get the normalized name when the connection is ready.

Alberto Mardegan alberto.mardegan at nokia.com
Thu Feb 19 00:35:57 PST 2009


---
 src/mcd-connection.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 1488d4c..c71d8c4 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -736,12 +736,6 @@ _mcd_connection_get_normalized_name (McdConnection *connection)
 }
 
 static void
-_mcd_connection_get_self_handle (McdConnection *connection)
-{
-    _mcd_connection_get_normalized_name (connection);
-}
-
-static void
 avatars_set_avatar_cb (TpConnection *proxy, const gchar *token,
 		       const GError *error, gpointer user_data,
 		       GObject *weak_object)
@@ -1084,7 +1078,6 @@ on_connection_status_changed (TpConnection *tp_conn, GParamSpec *pspec,
 	{
 	    mcd_account_set_connection_status (priv->account,
 					       conn_status, conn_reason);
-	    _mcd_connection_get_self_handle (connection);
 	    priv->reconnect_interval = INITIAL_RECONNECTION_TIME;
 	}
 	break;
@@ -1462,6 +1455,8 @@ on_connection_ready (TpConnection *tp_conn, const GError *error,
     g_debug ("%s: connection is ready", G_STRFUNC);
     priv = MCD_CONNECTION_PRIV (connection);
 
+    _mcd_connection_get_normalized_name (connection);
+
     priv->has_presence_if = tp_proxy_has_interface_by_id
         (tp_conn, TP_IFACE_QUARK_CONNECTION_INTERFACE_SIMPLE_PRESENCE);
     priv->has_avatars_if = tp_proxy_has_interface_by_id (tp_conn,
-- 
1.5.6.5



More information about the telepathy-commits mailing list