diff options
author | Dan Williams <dcbw@redhat.com> | 2011-03-09 03:26:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-09 03:28:40 +0800 |
commit | 8a81ec271ed0ab05b8fdfb5cbf374867b3906352 (patch) | |
tree | 54468800648e64211b81cd196cf46f78ea6340ec /modules/network-manager | |
parent | ab21cfaeeb29393cdfd167dba8ecc8b48bb5fc02 (diff) | |
download | gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar.gz gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar.bz2 gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar.lz gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar.xz gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.tar.zst gsoc2013-evolution-8a81ec271ed0ab05b8fdfb5cbf374867b3906352.zip |
Bug 644232 - Support NetworkManager 0.9
Diffstat (limited to 'modules/network-manager')
-rw-r--r-- | modules/network-manager/evolution-network-manager.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/network-manager/evolution-network-manager.c b/modules/network-manager/evolution-network-manager.c index 7546ece205..1c15a84a16 100644 --- a/modules/network-manager/evolution-network-manager.c +++ b/modules/network-manager/evolution-network-manager.c @@ -19,6 +19,10 @@ #include <gio/gio.h> #include <NetworkManager/NetworkManager.h> +#if !defined(NM_CHECK_VERSION) +#define NM_CHECK_VERSION(x,y,z) 0 +#endif + #include <shell/e-shell.h> #include <e-util/e-extension.h> @@ -95,11 +99,20 @@ network_manager_signal_cb (GDBusConnection *connection, g_variant_get (parameters, "(u)", &state); switch (state) { +#if NM_CHECK_VERSION(0,8,992) + case NM_STATE_CONNECTED_LOCAL: + case NM_STATE_CONNECTED_SITE: + case NM_STATE_CONNECTED_GLOBAL: +#else case NM_STATE_CONNECTED: +#endif e_shell_set_network_available (shell, TRUE); break; case NM_STATE_ASLEEP: case NM_STATE_DISCONNECTED: +#if NM_CHECK_VERSION(0,8,992) + case NM_STATE_DISCONNECTING: +#endif e_shell_set_network_available (shell, FALSE); break; default: |