[gnome-shell] ExtensionSystem: pass the metadata object to extensions



commit 6bf2dd91380e19ddc1fcfde21d984321ab7fbd11
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Feb 7 22:32:36 2011 +0100

    ExtensionSystem: pass the metadata object to extensions
    
    This allows using metadata.json as a configuration point (for
    example for installation prefix).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621017

 js/ui/extensionSystem.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 8a514a5..5773283 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -150,7 +150,7 @@ function loadExtension(dir, enabled, type) {
         return;
     }
     try {
-        extensionModule.main();
+        extensionModule.main(meta);
     } catch (e) {
         if (stylesheetPath != null)
             theme.unload_stylesheet(stylesheetPath);



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