[empathy: 15/26] empathy-connectivity: be sure to get the initial presence on init



commit 1b6dc82801e05a9afe5495e05e4918e19a44bdfe
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Wed Aug 19 15:08:52 2009 +0100

    empathy-connectivity: be sure to get the initial presence on init
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

 libempathy/empathy-connectivity.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-connectivity.c b/libempathy/empathy-connectivity.c
index e9734e5..27f4e1f 100644
--- a/libempathy/empathy-connectivity.c
+++ b/libempathy/empathy-connectivity.c
@@ -100,12 +100,16 @@ empathy_connectivity_init (EmpathyConnectivity *connectivity)
   connectivity->priv = priv;
   priv->dispose_run = FALSE;
 
+  priv->use_conn = TRUE;
+
 #ifdef HAVE_NM
   priv->nm_client = nm_client_new ();
   if (priv->nm_client != NULL)
     {
       g_signal_connect (priv->nm_client, "notify::" NM_CLIENT_STATE,
           G_CALLBACK (connectivity_nm_state_change_cb), connectivity);
+
+      connectivity_nm_state_change_cb (priv->nm_client, NULL, connectivity);
     }
   else
     {



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