From d183b3dbbdd4bf1aea48eff08ae33ddd27f23e57 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Wed, 19 Aug 2009 12:00:50 +0100 Subject: empathy-connectivity: handle changes in use_conn correctly This is so that the presence chooser can get notified if use_conn turns to false, and NM still reports us as offline, so it can become sensitive again. Signed-off-by: Jonny Lamb --- libempathy/empathy-connectivity.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libempathy/empathy-connectivity.c b/libempathy/empathy-connectivity.c index 47d02989e..b06b57cb8 100644 --- a/libempathy/empathy-connectivity.c +++ b/libempathy/empathy-connectivity.c @@ -290,8 +290,18 @@ empathy_connectivity_set_use_conn (EmpathyConnectivity *connectivity, #ifdef HAVE_NM if (use_conn) - connectivity_nm_state_change_cb (priv->nm_client, NULL, connectivity); + { + connectivity_nm_state_change_cb (priv->nm_client, NULL, connectivity); +#else + if (FALSE) + { #endif + } + else + { + g_signal_emit (connectivity, signals[STATE_CHANGE], 0, + FALSE, TRUE); + } g_object_notify (G_OBJECT (connectivity), "use-conn"); } -- cgit v1.2.3