From fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Fri, 24 Jun 2011 16:30:32 +0200 Subject: Use NM_STATE_CONNECTED_GLOBAL instead of the compat #define --- lib/ephy-network-manager-defines.h | 3 --- src/ephy-shell.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ephy-network-manager-defines.h b/lib/ephy-network-manager-defines.h index 01a4263c7..31439a5f3 100644 --- a/lib/ephy-network-manager-defines.h +++ b/lib/ephy-network-manager-defines.h @@ -51,7 +51,4 @@ typedef enum { NM_STATE_CONNECTED_GLOBAL = 70 } NMState; -/* For backwards compat */ -#define NM_STATE_CONNECTED NM_STATE_CONNECTED_GLOBAL - #endif diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 95e0f8635..1de265b6a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -158,7 +158,7 @@ ephy_shell_sync_network_status (EphyNetworkManager *nm_proxy, single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (EPHY_EMBED_SHELL (shell))); - net_status = state == NM_STATE_CONNECTED; + net_status = state == NM_STATE_CONNECTED_GLOBAL; ephy_embed_single_set_network_status (single, net_status); } -- cgit v1.2.3