[gnome-shell-extensions/extension-live-disable] native-window-placement: fix a bunch of typos related to disable()



commit cb50830d2658161fc8fbecc804ee98a5d8fa9fbf
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Aug 22 22:50:44 2011 +0200

    native-window-placement: fix a bunch of typos related to disable()
    
    This only appeared after testing. Plus we were missing init() also.

 extensions/native-window-placement/extension.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js
index db45a5c..67bc34f 100644
--- a/extensions/native-window-placement/extension.js
+++ b/extensions/native-window-placement/extension.js
@@ -516,12 +516,17 @@ function removeInjection(object, injection, name) {
 
 function disable() {
     for (i in workspaceInjections)
-        removeInjections(Workspace.Workspace.prototype, workspaceInjections, i);
+        removeInjection(Workspace.Workspace.prototype, workspaceInjections, i);
     for (i in winInjections)
-        removeInjections(Workspace.WindowOverlay.prototype, winInjections, i);
+        removeInjection(Workspace.WindowOverlay.prototype, winInjections, i);
 
     for each (i in connectedSignals)
         i.obj.disconnect(i.id);
 
+    global.stage.queue_relayout();
     resetState();
+}
+
+function init() {
+    /* do nothing */
 }
\ No newline at end of file



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