[gnome-shell] notificationDaemon: Fix loading/saving of notifications



commit b54d512f3fed190171b68c7f8ca2935d5ba7f54f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Oct 21 16:02:03 2013 -0400

    notificationDaemon: Fix loading/saving of notifications

 js/ui/notificationDaemon.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 7506573..12ca9b8 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -856,7 +856,7 @@ const GtkNotificationDaemonAppSource = new Lang.Class({
             let notification = this._notifications[notificationId];
             notifications.push([notificationId, notification.serialize()]);
         }
-        return GLib.Variant.new('(sa(sv))', this._appId, notifications);
+        return [this._appId, notifications];
     },
 });
 
@@ -907,7 +907,7 @@ const GtkNotificationDaemon = new Lang.Class({
     _loadNotifications: function() {
         this._isLoading = true;
 
-        let value = global.get_persistent_state('a(sa(sa{sv}))', 'notifications');
+        let value = global.get_persistent_state('a(sa(sv))', 'notifications');
         if (value) {
             let sources = value.deep_unpack();
             sources.forEach(Lang.bind(this, function([appId, notifications]) {
@@ -940,7 +940,7 @@ const GtkNotificationDaemon = new Lang.Class({
             sources.push(source.serialize());
         }
 
-        global.set_persistent_state('notifications', GLib.Variant.new_array('a@(sa{sa{sv}})', sources));
+        global.set_persistent_state('notifications', new GLib.Variant('a(sa(sv))', sources));
     },
 
     AddNotificationAsync: function(params, invocation) {


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