Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
```
gpm-upower.c:222:51: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gpm-upower.c:222:44: note: add parentheses around left hand side expression to silence this warning
222 | if (state == UP_DEVICE_STATE_CHARGING || !state == UP_DEVICE_STATE_DISCHARGING) {
| ^~~~~~
```
```
gpm-upower.c:222:53: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare]
222 | if (state == UP_DEVICE_STATE_CHARGING || (!state) == UP_DEVICE_STATE_DISCHARGING) {
|
```
|
|
inspired from:
https://git.gnome.org/browse/gnome-power-manager/commit/?id=65752cc
|
|
gpm_upower_get_device_summary()
taken from:
https://git.gnome.org/browse/gnome-power-manager/commit/?id=215f683
|
|
taken from:
https://git.gnome.org/browse/gnome-power-manager/commit/?id=f2c0409
|
|
Closes https://github.com/mate-desktop/mate-power-manager/pull/130
|
|
Closes https://github.com/mate-desktop/mate-power-manager/pull/126
|
|
|