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 <jonny.lamb@collabora.co.uk>
#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");
}