[gnome-settings-daemon] power: Use libnotify constant for non-expiring	notifications
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-settings-daemon] power: Use libnotify constant for non-expiring	notifications
- Date: Fri, 25 Jan 2013 15:43:41 +0000 (UTC)
commit c4b9a3d1b6fa4622b9c99dcde89c2b54067ef5d1
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 25 16:41:51 2013 +0100
    power: Use libnotify constant for non-expiring notifications
 plugins/power/gsd-power-manager.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index aadefcb..b5fc3fb 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -73,7 +73,6 @@
 #define GS_DBUS_PATH                            "/org/gnome/ScreenSaver"
 #define GS_DBUS_INTERFACE                       "org.gnome.ScreenSaver"
 
-#define GSD_POWER_MANAGER_NOTIFY_TIMEOUT_NEVER          0 /* ms */
 #define GSD_POWER_MANAGER_NOTIFY_TIMEOUT_SHORT          10 * 1000 /* ms */
 #define GSD_POWER_MANAGER_NOTIFY_TIMEOUT_LONG           30 * 1000 /* ms */
 
@@ -1811,7 +1810,7 @@ engine_charge_action (GsdPowerManager *manager, UpDevice *device)
                              icon,
                              &manager->priv->notification_low);
         notify_notification_set_timeout (manager->priv->notification_low,
-                                         GSD_POWER_MANAGER_NOTIFY_TIMEOUT_NEVER);
+                                         NOTIFY_EXPIRES_NEVER);
         notify_notification_set_urgency (manager->priv->notification_low,
                                          NOTIFY_URGENCY_CRITICAL);
         notify_notification_set_app_name (manager->priv->notification_low, _("Power"));
@@ -3068,7 +3067,7 @@ show_logout_warning (GsdPowerManager *manager)
                              NULL,
                              &manager->priv->notification_logout_warning);
         notify_notification_set_timeout (manager->priv->notification_logout_warning,
-                                         GSD_POWER_MANAGER_NOTIFY_TIMEOUT_NEVER);
+                                         NOTIFY_EXPIRES_NEVER);
         notify_notification_set_urgency (manager->priv->notification_logout_warning,
                                          NOTIFY_URGENCY_CRITICAL);
         notify_notification_set_app_name (manager->priv->notification_logout_warning, _("Power"));
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]