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
This commit is contained in:
Florian Müllner 2013-10-27 11:32:27 +01:00
parent 04d28a0eea
commit 41315f45a9

View File

@ -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) {