Age | Commit message (Collapse) | Author | Files | Lines |
|
The previous code would have leaked all the UpDevice objects because no
free function was set on the returned GPtrArray.
With depending on upower-glib 0.99.8 get_devices() was deprecated and get_devices2() was introduced, we
can simply switch to get_devices2() which does set a free function on
the returned GPtrArray, stopping the leak.
Inspired from:
https://gitlab.gnome.org/GNOME/gnome-control-center/commit/c1210c5
see upower upstream:
https://gitlab.freedesktop.org/upower/upower/commit/cb1071b
|
|
|
|
|
|
in preferences and gpm-statistics (mouse-battery)
|
|
This requires ConsoleKit2 0.9.2.
+ some corrections for issues mentioned at https://github.com/mate-desktop/mate-power-manager/pull/209
|
|
|
|
and require mate-panel >= 1.17
|
|
|
|
|
|
By adding GPM_ACTION_POLICY_NOTHING to the available power button
actions, it is now possible for MATE users to disable the system's
power button, while being in a MATE desktop session.
This is helpful if a system's power button is designed in a way that it
can easily be accidentally hit by the user without noticing.
|
|
|
|
|
|
g_variant_get() uses g_strdup() internally, so we should free the string after use.
|
|
1. udisks1 will soon be dropped from debian and ubuntu, and probably from
other major distros as well. it's replaced by udisks2.
2. the only udisks1 feature that was used in m-p-m was the disk spindown.
its usefullness is questionable, especially when you have an SSD.
3. udisks2 doesn't seem to have neither API nor command-line tools for the
spindown feature.
4. spindown support has been dropped in gnome-power-manager in 2011,
https://git.gnome.org/browse/gnome-power-manager/commit/?id=d97a988246d34f4cd38b7ee1335c9b500c7c522f
5. it also has been dropped in xfce-power-manager in 2014,
http://git.xfce.org/xfce/xfce4-power-manager/log/?qt=grep&q=disk+spin+down
Closes https://github.com/mate-desktop/mate-power-manager/pull/144
|
|
Closes https://github.com/mate-desktop/mate-power-manager/pull/137
|
|
some genius who programmed this decided it would be fine to access
GtkBuilder variables after gtk_builder_add_from_file fails. thanks
for the segfault, man. I've wasted an hour trying to find out what
happens.
Closes https://github.com/mate-desktop/mate-power-manager/pull/128
|
|
Closes https://github.com/mate-desktop/mate-power-manager/pull/126
|
|
|
|
fix mate-power-manager for current upower versions
|
|
|
|
|
|
|
|
There is no need to bind the user to either systemd-logind or upower
at build time. People can switch between init systems or run logind
without systemd.
|
|
With upower 0.9.20, sleep and hybernate functions of upower
declared deprecated. All applications should use logind for
sleep/hybernate. So, there is an implementation of
logind-powered sleep for mpm.
|
|
|
|
|
|
|
|
fix for bug #617529 originally by Richard Hughes)
|
|
|
|
|
|
|
|
function, not a preprocessor macro
|
|
|
|
|
|
|
|
|
|
|