]> git.0d.be Git - empathy.git/commitdiff
empathy-connectivity: be sure to get the initial presence on init
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Wed, 19 Aug 2009 14:08:52 +0000 (15:08 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Wed, 19 Aug 2009 14:08:52 +0000 (15:08 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy/empathy-connectivity.c

index e9734e5db750dd7ec44232d7699aca433535c8dc..27f4e1f1752e736ee7b63c12dae4495cce491395 100644 (file)
@@ -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
     {