[gnome-shell] notificationDaemon: Fix urgency hint



commit 04d28a0eea3006f2f90f321bc38f08a73ae5853a
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Oct 27 11:16:14 2013 +0100

    notificationDaemon: Fix urgency hint
    
    We currently mark notifications as urgent which merely contain the
    'urgent' property, even when set to false. Look at the actual value
    instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710596

 js/ui/notificationDaemon.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index b956db0..a1b76ab 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -732,7 +732,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({
               "default-action": defaultAction,
               "default-action-target": defaultActionTarget } = notification;
 
-        this.setUrgency(urgent ? MessageTray.Urgency.CRITICAL : MessageTray.Urgency.NORMAL);
+        this.setUrgency(urgent.unpack() ? MessageTray.Urgency.CRITICAL
+                                        : MessageTray.Urgency.NORMAL);
 
         if (buttons) {
             buttons.deep_unpack().forEach(Lang.bind(this, function(button) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]