aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-19 22:01:16 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-19 22:01:16 +0800
commit1f9772288086230ec9b8ac63380ad90d413b73c0 (patch)
tree42750d5503e163bf5f9e1cf94c448a7304f2f716
parent6013dce0de5f8046d0b1318b7d01d672eac45b91 (diff)
downloadgsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar.gz
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar.bz2
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar.lz
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar.xz
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.tar.zst
gsoc2013-empathy-1f9772288086230ec9b8ac63380ad90d413b73c0.zip
empathy-connectivity: init priv->connected to TRUE if we're not using NM
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--libempathy/empathy-connectivity.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libempathy/empathy-connectivity.c b/libempathy/empathy-connectivity.c
index 4e75d7d76..e9734e5db 100644
--- a/libempathy/empathy-connectivity.c
+++ b/libempathy/empathy-connectivity.c
@@ -111,6 +111,8 @@ empathy_connectivity_init (EmpathyConnectivity *connectivity)
{
DEBUG ("Failed to get NetworkManager proxy");
}
+#else
+ priv->connected = TRUE;
#endif
}
@@ -257,11 +259,7 @@ empathy_connectivity_is_online (EmpathyConnectivity *connectivity)
if (priv->use_conn)
{
-#ifdef HAVE_NM
return priv->connected;
-#else
- return TRUE;
-#endif
}
else
{