[the-board] [ui] Rename _toolBoxGroup to _mainToolBoxGroup in MainWindow
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Rename _toolBoxGroup to _mainToolBoxGroup in MainWindow
- Date: Sun, 7 Nov 2010 23:21:10 +0000 (UTC)
commit a47e88be5b3b987ff52801df9b74f9c3914e7892
Author: Lucas Rocha <lucasr gnome org>
Date: Sun Nov 7 19:38:49 2010 +0000
[ui] Rename _toolBoxGroup to _mainToolBoxGroup in MainWindow
For clarity reasons and in preparation for the thing-specific toolbar
support.
src/js/ui/mainWindow.js | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index ac82adf..5f8ad48 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -186,23 +186,23 @@ MainWindow.prototype = {
},
_createToolBoxGroup : function() {
- this._toolBoxGroup = new ToolBoxGroup.ToolBoxGroup();
+ this._mainToolBoxGroup = new ToolBoxGroup.ToolBoxGroup();
this._toolBoxGroupActiveChangedId =
- this._toolBoxGroup.connect("active-changed",
- Lang.bind(this,
- this._onToolBoxGroupActiveChanged));
+ this._mainToolBoxGroup.connect("active-changed",
+ Lang.bind(this,
+ this._onToolBoxGroupActiveChanged));
- this._toolBoxGroup.actor.depth = _LAYER_TOOLBOX;
+ this._mainToolBoxGroup.actor.depth = _LAYER_TOOLBOX;
this._createToolBoxPages();
this._createToolBoxThings();
this._createToolBoxBackgrounds();
- this._contentBox.append(this._toolBoxGroup.actor,
+ this._contentBox.append(this._mainToolBoxGroup.actor,
Tb.BoxPackFlags.FIXED);
- this._contentBox.set_fixed_child_align(this._toolBoxGroup.actor,
+ this._contentBox.set_fixed_child_align(this._mainToolBoxGroup.actor,
Tb.BoxAlignment.CENTER,
Tb.BoxAlignment.START);
},
@@ -234,21 +234,21 @@ MainWindow.prototype = {
this._toolBoxPages =
new ToolBoxPages.ToolBoxPages({ context: this._context });
- this._toolBoxGroup.addToolBox(this._toolBoxPages);
+ this._mainToolBoxGroup.addToolBox(this._toolBoxPages);
},
_createToolBoxThings : function() {
this._toolBoxThings =
new ToolBoxThings.ToolBoxThings({ mainWindow: this });
- this._toolBoxGroup.addToolBox(this._toolBoxThings);
+ this._mainToolBoxGroup.addToolBox(this._toolBoxThings);
},
_createToolBoxBackgrounds : function() {
this._toolBoxBackgrounds =
new ToolBoxBackgrounds.ToolBoxBackgrounds({ mainWindow: this });
- this._toolBoxGroup.addToolBox(this._toolBoxBackgrounds);
+ this._mainToolBoxGroup.addToolBox(this._toolBoxBackgrounds);
},
_createContext : function() {
@@ -494,7 +494,7 @@ MainWindow.prototype = {
},
_onToolBoxGroupActiveChanged : function() {
- if (this._currentPage && this._toolBoxGroup.active) {
+ if (this._currentPage && this._mainToolBoxGroup.active) {
this._currentPage.setActiveThing(null);
}
},
@@ -588,12 +588,12 @@ MainWindow.prototype = {
if (this._currentPage.activeThing === null) {
this._mainBox.grab_key_focus();
} else {
- this._toolBoxGroup.deactivate();
+ this._mainToolBoxGroup.deactivate();
}
},
_onPageButtonPressEvent : function() {
- this._toolBoxGroup.deactivate();
+ this._mainToolBoxGroup.deactivate();
this._mainBox.grab_key_focus();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]