summaryrefslogtreecommitdiff
path: root/src/gpm-upower.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-09Port from EggDebug to the built-in GLib logging frameworkrbuj1-6/+5
2019-07-24gpm-upower: fix some build warningsraveit651-1/+1
``` 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) { | ```
2016-07-25Do not issue a console warning when laptop batteries are emptyraveit651-0/+6
inspired from: https://git.gnome.org/browse/gnome-power-manager/commit/?id=65752cc
2016-07-25trivial: provide some text for devices that are not present in ↵raveit651-3/+6
gpm_upower_get_device_summary() taken from: https://git.gnome.org/browse/gnome-power-manager/commit/?id=215f683
2016-07-25rename a function to match upstreamraveit651-4/+4
taken from: https://git.gnome.org/browse/gnome-power-manager/commit/?id=f2c0409
2015-03-19upower: handle UP_DEVICE_STATE_UNKNOWN, avoid assertmonsta1-0/+4
Closes https://github.com/mate-desktop/mate-power-manager/pull/130
2015-01-15remove ifdefs, bump upower version requirementMonsta1-4/+0
Closes https://github.com/mate-desktop/mate-power-manager/pull/126
2011-12-11moved from Mate-ExtraStefano Karapetsas1-0/+661