[gnome-settings-daemon] power: Don't do an action on critical battery
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Don't do an action on critical battery
- Date: Thu, 17 Oct 2013 15:43:14 +0000 (UTC)
commit 8e6a82c585fe16978f9e1ca3437a4b96dd4e6d34
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 17 09:26:01 2013 +0200
power: Don't do an action on critical battery
UPower does that for us.
plugins/power/gsd-power-manager.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index ae67080..813c828 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -542,14 +542,9 @@ static gboolean
manager_critical_action_do (GsdPowerManager *manager,
gboolean is_ups)
{
- GsdPowerActionType action_type;
-
/* stop playing the alert as it's too late to do anything now */
play_loop_stop (&manager->priv->critical_alert_timeout_id);
- action_type = manager_critical_action_get (manager);
- do_power_action_type (manager, action_type);
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]