From 41315f45a94aa6a45b19108067b102f41048ae0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 27 Oct 2013 11:32:27 +0100 Subject: [PATCH] notificationDaemon: Fix custom icons The 'icon' property contains a serialized GIcon, so we need to deserialize it when setting the icon. 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 a1b76ab15..96b147274 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -745,7 +745,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({ this._defaultAction = defaultAction ? defaultAction.unpack() : null; this._defaultActionTarget = defaultActionTarget; - this.update(title.unpack(), body ? body.unpack() : null, { gicon: gicon }); + this.update(title.unpack(), body ? body.unpack() : null, + { gicon: gicon ? Gio.icon_deserialize(gicon) : null }); }, _activateAction: function(namespacedActionId, target) {