[gnome-power-manager] Set the timeout for critical battery notification to never
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Set the timeout for critical battery notification to never
- Date: Tue, 23 Feb 2010 17:38:22 +0000 (UTC)
commit e1d6fd0bb756ca92550b0f1685a0ae2fb671397b
Author: William Jon McCann <william jon mccann gmail com>
Date: Tue Feb 23 17:36:29 2010 +0000
Set the timeout for critical battery notification to never
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpm-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 6008c96..ea10101 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1545,7 +1545,7 @@ gpm_manager_engine_charge_critical_cb (GpmEngine *engine, DkpDevice *device, Gpm
/* get correct icon */
icon = gpm_upower_get_device_icon (device);
- gpm_manager_notify (manager, &manager->priv->notification, title, message, GPM_MANAGER_NOTIFY_TIMEOUT_LONG, icon, NOTIFY_URGENCY_CRITICAL);
+ gpm_manager_notify (manager, &manager->priv->notification, title, message, GPM_MANAGER_NOTIFY_TIMEOUT_NEVER, icon, NOTIFY_URGENCY_CRITICAL);
gpm_manager_play (manager, GPM_MANAGER_SOUND_BATTERY_LOW, TRUE);
out:
g_free (icon);
@@ -1653,7 +1653,7 @@ gpm_manager_engine_charge_action_cb (GpmEngine *engine, DkpDevice *device, GpmMa
/* get correct icon */
icon = gpm_upower_get_device_icon (device);
gpm_manager_notify (manager, &manager->priv->notification,
- title, message, GPM_MANAGER_NOTIFY_TIMEOUT_LONG,
+ title, message, GPM_MANAGER_NOTIFY_TIMEOUT_NEVER,
icon, NOTIFY_URGENCY_CRITICAL);
gpm_manager_play (manager, GPM_MANAGER_SOUND_BATTERY_LOW, TRUE);
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]