aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-24 22:30:32 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-24 22:30:32 +0800
commitfff20a2ee1761c9768bd2fd72f4c998d02d5b6cd (patch)
tree575be27870d5d9946fa8dfa114290793e49d527f
parent64ff9f8650277fdf849917a01dde4b18e67b046d (diff)
downloadgsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar.gz
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar.bz2
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar.lz
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar.xz
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.tar.zst
gsoc2013-epiphany-fff20a2ee1761c9768bd2fd72f4c998d02d5b6cd.zip
Use NM_STATE_CONNECTED_GLOBAL instead of the compat #define
-rw-r--r--lib/ephy-network-manager-defines.h3
-rw-r--r--src/ephy-shell.c2
2 files changed, 1 insertions, 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);
}