From c11cbff605a909fc81b1e76885dbd3f1d1725a7f Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 30 Dec 2012 11:29:32 -0500 Subject: [PATCH] notificationDaemon: Prevent doing redundant work We already calculated and created a gicon based on the icon and hints. https://bugzilla.gnome.org/show_bug.cgi?id=680414 --- js/ui/notificationDaemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index ff6c25f06..6f63b589d 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -435,7 +435,7 @@ const NotificationDaemon = new Lang.Class({ // of the 'transient' hint with hints['transient'] rather than hints.transient notification.setTransient(hints['transient'] == true); - let sourceGIcon = source.useNotificationIcon ? this._iconForNotificationData(icon, hints) : null; + let sourceGIcon = source.useNotificationIcon ? gicon : null; source.processNotification(notification, sourceGIcon); },