[gnome-shell] extensionSystem: Remove the two-step initialize



commit 3290bfae682c761c158c2f195c4d70cd7f505513
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jun 4 18:46:27 2012 -0400

    extensionSystem: Remove the two-step initialize
    
    Initially, extensions were loaded after they shell had fully created
    the session and all objects, but this didn't allow extensions easy
    ways to monkey patch prototypes, as most functions had already been
    bound. Remove the historical vestigal function, and just merge the
    two together.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677586

 js/ui/extensionSystem.js |    4 +---
 js/ui/main.js            |    1 -
 2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 35b02a4..c33162d 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -239,12 +239,10 @@ function onEnabledExtensionsChanged() {
     enabledExtensions = newEnabledExtensions;
 }
 
-function init() {
+function loadExtensions() {
     global.settings.connect('changed::' + ENABLED_EXTENSIONS_KEY, onEnabledExtensionsChanged);
     enabledExtensions = global.settings.get_strv(ENABLED_EXTENSIONS_KEY);
-}
 
-function loadExtensions() {
     let finder = new ExtensionUtils.ExtensionFinder();
     finder.connect('extension-found', function(signals, extension) {
         loadExtension(extension);
diff --git a/js/ui/main.js b/js/ui/main.js
index 35c47de..4248ab9 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -221,7 +221,6 @@ function start() {
                                                 false, -1, 1);
 
     if (sessionMode.allowExtensions) {
-        ExtensionSystem.init();
         ExtensionDownloader.init();
         ExtensionSystem.loadExtensions();
     }



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