[gnome-shell-extensions/extension-live-disable] windowsNavigator: fix a bunch of typos related to disable
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/extension-live-disable] windowsNavigator: fix a bunch of typos related to disable
- Date: Mon, 22 Aug 2011 20:54:05 +0000 (UTC)
commit 23ecaf9b849867ac12701ef6600e1cd221c8ed39
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Aug 22 22:52:10 2011 +0200
windowsNavigator: fix a bunch of typos related to disable
Same as native-window-placement (code was copy-pasted).
extensions/windowsNavigator/extension.js | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index f19770b..c42d966 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -213,9 +213,10 @@ function enable() {
visible: false }));
this.actor.add_actor(this._tip);
- this.actor.connect('notify::scale-x', Lang.bind(this, function() {
+ let signalId = this.actor.connect('notify::scale-x', Lang.bind(this, function() {
this._tip.set_scale(1 / this.actor.scale_x, 1 / this.actor.scale_x);
}));
+ connectedSignals.push({ obj: this.actor, id: signalId });
} else
this._tip = null;
});
@@ -262,11 +263,11 @@ 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 (i in workViewInjections)
- removeInjections(Workspaces.WorkspacesView.prototype, workViewInjections, i);
+ removeInjection(WorkspacesView.WorkspacesView.prototype, workViewInjections, i);
for each (i in connectedSignals)
i.obj.disconnect(i.id);
@@ -276,3 +277,7 @@ function disable() {
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]