[gnome-shell] shellDBus: Ignore extension properties that we don't care about



commit 97e7ea0b5d7012fff6cf6bc171dd6acccfe18668
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Nov 15 16:46:17 2011 -0500

    shellDBus: Ignore extension properties that we don't care about

 js/ui/shellDBus.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index 8fb51e1..6a0a827 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -171,14 +171,14 @@ GnomeShell.prototype = {
             let val = meta[key];
             let type;
             switch (typeof val) {
-            case 'object':
-                throw Error('Extension had a nested object in the metadata. This is not supported');
             case 'string':
                 type = 's';
                 break;
             case 'number':
                 type = 'd';
                 break;
+            default:
+                continue;
             }
             out[key] = GLib.Variant.new(type, val);
         }



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