[the-board] [ui] Remove menu button from MainWindow



commit dee0fcf96d32ae86b2117843cfcb883ac0b4489b
Author: Lucas Rocha <lucasr gnome org>
Date:   Sat Nov 6 23:33:01 2010 +0000

    [ui] Remove menu button from MainWindow
    
    Current design thinking implies main toolbar is always visible.

 data/icons/24x24/actions/menu.png |  Bin 406 -> 0 bytes
 src/js/ui/mainWindow.js           |   23 -----------------------
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 8750743..ac82adf 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -60,7 +60,6 @@ MainWindow.prototype = {
         this._createContentBox();
 
         this._createContext();
-        this._createMenuButton();
         this._createToolBoxGroup();
         this._createSpinner();
 
@@ -208,21 +207,6 @@ MainWindow.prototype = {
                                                Tb.BoxAlignment.START);
     },
 
-    _createMenuButton : function() {
-        this._menuButton =
-            new Mx.Button({ name: "menu-button" });
-
-        this._menuButton.connect('clicked',
-                                 Lang.bind(this, this._onMenuButtonClicked));
-
-        this._mainBox.append(this._menuButton,
-                             Tb.BoxPackFlags.FIXED);
-
-        this._mainBox.set_fixed_child_align(this._menuButton,
-                                            Tb.BoxAlignment.START,
-                                            Tb.BoxAlignment.START);
-    },
-
     _createSpinner : function() {
         this._spinnerBox =
             new Tb.Box({ orientation: Tb.BoxOrientation.VERTICAL,
@@ -576,9 +560,6 @@ MainWindow.prototype = {
         } else if (text == 'v') {
             this._currentPage.addThingFromId('video');
             return true;
-        } else if (text == 'm') {
-            this._toolBoxGroup.toggle();
-            return true;
         } else if (text == 'q') {
             this._quitApp();
             return true;
@@ -627,10 +608,6 @@ MainWindow.prototype = {
         }
     },
 
-    _onMenuButtonClicked : function() {
-        this._toolBoxGroup.toggle();
-    },
-
     setCurrentPage : function(pageModel) {
         if (this._currentPage &&
             this._currentPage.model.id == pageModel.id) {



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