diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-12-27 00:30:33 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-12-27 00:30:33 +0100 |
commit | 2652c6c0bee7f1ccdc1ef4c170077a7671d8ee27 (patch) | |
tree | ba57660a07261fd9134e142a9ccac244f1683eac | |
parent | 1db4068e22b7ed6d3174e31e48b4ba5299ebff83 (diff) |
Adjust to gnome-shell CodingStylev0.0.1
-rw-r--r-- | extension.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/extension.js b/extension.js index 9b0b39c..87bd2af 100644 --- a/extension.js +++ b/extension.js @@ -1,3 +1,4 @@ +// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Gio = imports.gi.Gio; const Lang = imports.lang; const St = imports.gi.St; @@ -28,12 +29,12 @@ OnScreenKeyboardButton.prototype = { _toggleShowOnScreenKeyboard: function() { if (this._onScreenKeyboardShown) { - this.actor.set_label("Show keyboard"); - Main.keyboard.hide(); + this.actor.set_label("Show keyboard"); + Main.keyboard.hide(); } else { - this._activateOnScreenKeyboard(); - this.actor.set_label("Hide keyboard"); - Main.keyboard.show(); + this._activateOnScreenKeyboard(); + this.actor.set_label("Hide keyboard"); + Main.keyboard.show(); } this._onScreenKeyboardShown = !this._onScreenKeyboardShown; }, @@ -46,11 +47,11 @@ function init() { } function enable() { - let _children = Main.panel._centerBox.get_children(); - Main.panel._centerBox.insert_child_at_index(button.actor, _children.length - 1); - Main.panel._centerBox.add(button.actor); + let _children = Main.panel._centerBox.get_children(); + Main.panel._centerBox.insert_child_at_index(button.actor, _children.length - 1); + Main.panel._centerBox.add(button.actor); } function disable() { - Main.panel._centerBoxBox.remove_actor(button.actor); + Main.panel._centerBoxBox.remove_actor(button.actor); } |