[gnome-settings-daemon] power: Remove idle notifications when active
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Remove idle notifications when active
- Date: Thu, 31 Jan 2013 20:13:13 +0000 (UTC)
commit e708769321b2f0f5bb55aa3a770faddb7dd128d9
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 31 12:44:11 2013 +0100
power: Remove idle notifications when active
Otherwise we'll still be told about them.
plugins/power/gsd-power-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index d2a6c7d..7eae757 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3084,6 +3084,10 @@ idle_became_active_cb (GnomeIdleMonitor *monitor,
g_debug ("idletime reset");
set_temporary_unidle_on_ac (manager, FALSE);
+
+ /* close any existing notification about idleness */
+ notify_close_if_showing (manager->priv->notification_logout_warning);
+
idle_set_mode (manager, GSD_POWER_IDLE_MODE_NORMAL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]