From 04d28a0eea3006f2f90f321bc38f08a73ae5853a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 27 Oct 2013 11:16:14 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index b956db06c..a1b76ab15 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) {