diff options
author | Aylur <[email protected]> | 2024-09-02 17:21:26 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-02 17:21:26 +0000 |
commit | d9a514a6e59c839d2779c06f0fafb640802068f7 (patch) | |
tree | b5e60ef9e1711210b26f5cb9cca1e726dfe91ef6 /lib/battery | |
parent | f5d5376ff90b7fef5016fef23d832c9929399785 (diff) |
fix enum values
when the first member is assigned 0, vala assigns 0 to the next member
regardless
Diffstat (limited to 'lib/battery')
-rw-r--r-- | lib/battery/device.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/battery/device.vala b/lib/battery/device.vala index eab3770..a1d016e 100644 --- a/lib/battery/device.vala +++ b/lib/battery/device.vala @@ -133,7 +133,7 @@ public class Device : Object { [CCode (type_signature = "u")] public enum State { - UNKNOWN = 0, + UNKNOWN, CHARGING, DISCHARGING, EMPTY, @@ -144,7 +144,7 @@ public enum State { [CCode (type_signature = "u")] public enum Technology { - UNKNOWN = 0, + UNKNOWN, LITHIUM_ION, LITHIUM_POLYMER, LITHIUM_IRON_PHOSPHATE, @@ -155,7 +155,7 @@ public enum Technology { [CCode (type_signature = "u")] public enum WarningLevel { - UNKNOWN = 0, + UNKNOWN, NONE, DISCHARGING, LOW, @@ -165,7 +165,7 @@ public enum WarningLevel { [CCode (type_signature = "u")] public enum BatteryLevel { - UNKNOWN = 0, + UNKNOWN, NONE, LOW, CRITICIAL, @@ -176,7 +176,7 @@ public enum BatteryLevel { [CCode (type_signature = "u")] public enum Type { - UNKNOWN = 0, + UNKNOWN, LINE_POWER, BATTERY, UPS, |