[gnome-power-manager] Fix a problem where the critical action is not done in the case of a UPS
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Fix a problem where the critical action is not done in the case of a UPS
- Date: Thu, 4 Mar 2010 14:44:20 +0000 (UTC)
commit ba4cb0f9fcde392c4a3dd3b87f9844d06c20b85f
Author: Pramod Dematagoda <pmd lotr gandalf gmail com>
Date: Thu Mar 4 11:16:43 2010 +0530
Fix a problem where the critical action is not done in the case of a UPS
src/gpm-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 3491a4f..92cf123 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1641,6 +1641,9 @@ gpm_manager_engine_charge_action_cb (GpmEngine *engine, DkpDevice *device, GpmMa
"this computer is about to shutdown."));
}
+ /* wait 20 seconds for user-panic */
+ g_timeout_add_seconds (20, (GSourceFunc) manager_critical_action_do, manager);
+
g_free (action);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]