This is an automated email from the git hooks/post-receive script. eric pushed a commit to branch master in repository xfce/xfce4-power-manager.
commit b0d8826e561ef7063ff43b72d066833a9d80f1dc Author: Eric Koegel <eric.koe...@gmail.com> Date: Mon Oct 27 13:47:27 2014 +0300 Fix for critical battery action (Bug #11237) There were a couple of 'typos' to correct and now there's action at critical power. Patch submitted by Simon P. --- src/xfpm-battery.c | 2 +- src/xfpm-power.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xfpm-battery.c b/src/xfpm-battery.c index 15691d8..7d95d49 100644 --- a/src/xfpm-battery.c +++ b/src/xfpm-battery.c @@ -395,7 +395,7 @@ static void xfpm_battery_get_property (GObject *object, g_value_set_boolean (value, battery->priv->ac_online); break; case PROP_DEVICE_TYPE: - g_value_set_enum (value, battery->priv->type); + g_value_set_uint (value, battery->priv->type); break; case PROP_CHARGE_STATUS: g_value_set_enum (value, battery->priv->charge); diff --git a/src/xfpm-power.c b/src/xfpm-power.c index e428a15..ac5850b 100644 --- a/src/xfpm-power.c +++ b/src/xfpm-power.c @@ -482,7 +482,7 @@ xfpm_power_get_current_charge_state (XfpmPower *power) g_object_get (G_OBJECT (g_list_nth_data (list, i)), "charge-status", &battery_charge, "device-type", &type, - "power-supply", &power_supply, + "ac-online", &power_supply, NULL); if ( type != UP_DEVICE_KIND_BATTERY && type != UP_DEVICE_KIND_UPS && -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits