~ubuntu-branches/ubuntu/jaunty/venkman/jaunty

« back to all changes in this revision

Viewing changes to chrome/content/venkman/venkman-menus.js

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2006-11-25 13:09:12 UTC
  • mfrom: (2.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061125130912-lf5wuz22ijh0k8ed
Tags: 0.9.87-6
debian/postinst: Don't invoque chrome updaters (except iceape one) on
first installs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
2
 *
3
 
 * The contents of this file are subject to the Mozilla Public License
4
 
 * Version 1.1 (the "License"); you may not use this file except in
5
 
 * compliance with the License. You may obtain a copy of the License at
6
 
 * http://www.mozilla.org/MPL/ 
7
 
 * 
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public License Version
 
7
 * 1.1 (the "License"); you may not use this file except in compliance with
 
8
 * the License. You may obtain a copy of the License at
 
9
 * http://www.mozilla.org/MPL/
 
10
 *
8
11
 * Software distributed under the License is distributed on an "AS IS" basis,
9
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10
13
 * for the specific language governing rights and limitations under the
11
 
 * License. 
12
 
 *
13
 
 * The Original Code is The JavaScript Debugger
14
 
 * 
 
14
 * License.
 
15
 *
 
16
 * The Original Code is The JavaScript Debugger.
 
17
 *
15
18
 * The Initial Developer of the Original Code is
16
 
 * Netscape Communications Corporation
17
 
 * Portions created by Netscape are
18
 
 * Copyright (C) 1998 Netscape Communications Corporation.
19
 
 *
20
 
 * Alternatively, the contents of this file may be used under the
21
 
 * terms of the GNU Public License (the "GPL"), in which case the
22
 
 * provisions of the GPL are applicable instead of those above.
23
 
 * If you wish to allow use of your version of this file only
24
 
 * under the terms of the GPL and not to allow others to use your
25
 
 * version of this file under the MPL, indicate your decision by
26
 
 * deleting the provisions above and replace them with the notice
27
 
 * and other provisions required by the GPL.  If you do not delete
28
 
 * the provisions above, a recipient may use your version of this
29
 
 * file under either the MPL or the GPL.
 
19
 * Netscape Communications Corporation.
 
20
 * Portions created by the Initial Developer are Copyright (C) 1998
 
21
 * the Initial Developer. All Rights Reserved.
30
22
 *
31
23
 * Contributor(s):
32
 
 *  Robert Ginda, <rginda@netscape.com>, original author
33
 
 *
34
 
 */
 
24
 *   Robert Ginda, <rginda@netscape.com>, original author
 
25
 *
 
26
 * Alternatively, the contents of this file may be used under the terms of
 
27
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
28
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
29
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
30
 * of those above. If you wish to allow use of your version of this file only
 
31
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
32
 * use your version of this file under the terms of the MPL, indicate your
 
33
 * decision by deleting the provisions above and replace them with the notice
 
34
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
35
 * the provisions above, a recipient may use your version of this file under
 
36
 * the terms of any one of the MPL, the GPL or the LGPL.
 
37
 *
 
38
 * ***** END LICENSE BLOCK ***** */
35
39
 
36
40
function initMenus()
37
41
{    
103
107
    };
104
108
 
105
109
    var Mozilla = "(console.host == 'Mozilla')";
106
 
    var FirefoxOnLinux = "((console.host == 'Firefox') and (console.platform == 'Linux'))";
107
 
    var FirefoxNotOnLinux = "((console.host == 'Firefox') and !(console.platform == 'Linux'))";
108
110
 
109
111
    console.menuSpecs["mainmenu:edit"] = {
110
112
        label: MSG_MNU_EDIT,
121
123
         ["cmd-selectall", {enabledif: "getCommandEnabled('cmd_selectAll')"}],
122
124
         ["-",                 {visibleif: Mozilla}],
123
125
         ["cmd-mozilla-prefs", {visibleif: Mozilla}]
124
 
    //     ["cmd-venkman-prefs", {visibleif: Mozilla}],
125
 
    //     ["-",                 {visibleif: FirefoxOnLinux}],
126
 
    //     ["cmd-prefs",         {visibleif: FirefoxOnLinux}]
127
126
        ]
128
127
    };
129
128
 
130
 
    //console.menuSpecs["mainmenu:tools"] = {
131
 
    //    label: MSG_MNU_TOOLS,
132
 
    //    items:
133
 
    //    [
134
 
    //     ["cmd-venkman-opts", {visibleif: FirefoxNotOnLinux}]
135
 
    //    ]
136
 
    //};
137
 
 
138
129
    console.menuSpecs["mainmenu:view"] = {
139
130
        label: MSG_MNU_VIEW,
140
131
        items:
278
269
    var spec = console.menuSpecs["maintoolbar"];
279
270
    for (var i in spec.items)
280
271
    {
281
 
        menuManager.appendToolbarItem (maintoolbar, null, spec.items[i]);
 
272
        menuManager.appendToolbarItem (maintoolbar, null, spec.items[i][0]);
282
273
    }
283
274
 
284
275
    maintoolbar = document.getElementById("maintoolbar-outer");