[gnome-shell] notificationDaemon: Fix custom icons



commit 41315f45a94aa6a45b19108067b102f41048ae0a
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Oct 27 11:32:27 2013 +0100

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index a1b76ab..96b1472 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]