[gnome-shell] notificationDaemon: Prevent doing redundant work
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] notificationDaemon: Prevent doing redundant work
- Date: Wed, 2 Jan 2013 17:33:12 +0000 (UTC)
commit c11cbff605a909fc81b1e76885dbd3f1d1725a7f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 30 11:29:32 2012 -0500
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index ff6c25f..6f63b58 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);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]