[epiphany] Use NM_STATE_CONNECTED_GLOBAL instead of the compat #define



commit fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd
Author: Xan Lopez <xlopez igalia com>
Date:   Fri Jun 24 16:30:32 2011 +0200

    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 insertions(+), 4 deletions(-)
---
diff --git a/lib/ephy-network-manager-defines.h b/lib/ephy-network-manager-defines.h
index 01a4263..31439a5 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 95e0f86..1de265b 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]