summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormunicorn <[email protected]>2024-12-04 12:39:10 -0700
committermunicorn <[email protected]>2024-12-04 13:38:40 -0700
commit92ed24778937b454c5a2c37e664cdd5c865820dc (patch)
tree8df9da93d0d7ed15a3a2b851344d6ee78e3e372d /lib
parent990f031507b21f8a18c0710016fb76b1f260afe8 (diff)
fix(network): specify values for State enum
Diffstat (limited to 'lib')
-rw-r--r--lib/network/network.vala16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/network/network.vala b/lib/network/network.vala
index 96e19c8..b5a6c61 100644
--- a/lib/network/network.vala
+++ b/lib/network/network.vala
@@ -104,14 +104,14 @@ public enum AstalNetwork.Primary {
// alias for NM.State
public enum AstalNetwork.State {
- UNKNOWN,
- ASLEEP,
- DISCONNECTED,
- DISCONNECTING,
- CONNECTING,
- CONNECTED_LOCAL,
- CONNECTED_SITE,
- CONNECTED_GLOBAL;
+ UNKNOWN = 0,
+ ASLEEP = 10,
+ DISCONNECTED = 20,
+ DISCONNECTING = 30,
+ CONNECTING = 40,
+ CONNECTED_LOCAL = 50,
+ CONNECTED_SITE = 60,
+ CONNECTED_GLOBAL = 70;
public string to_string() {
switch (this) {