Commit ee7e3cc3 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

remove chromium toolbar, replacing it with a "Show DevTools" item in the "Help" menu

parent 7b81ed29
...@@ -701,6 +701,16 @@ function nw_create_pd_window_menus () { ...@@ -701,6 +701,16 @@ function nw_create_pd_window_menus () {
tooltip: l("menu.forums_tt") tooltip: l("menu.forums_tt")
})); }));
helpMenu.append(new gui.MenuItem({
label: l("menu.devtools"),
click: function() {
gui.Window.get().showDevTools();
},
key: "b",
modifiers: "ctrl",
tooltip: l("menu.devtools_tt")
}));
//helpMenu.append(new gui.MenuItem({ //helpMenu.append(new gui.MenuItem({
// label: l("menu.irc"), // label: l("menu.irc"),
// click: function() { // click: function() {
...@@ -732,7 +742,7 @@ function nw_create_window(cid, type, width, height, xpos, ypos, menu_flag, ...@@ -732,7 +742,7 @@ function nw_create_window(cid, type, width, height, xpos, ypos, menu_flag,
var new_win = gui.Window.open(my_file, { var new_win = gui.Window.open(my_file, {
title: my_title, title: my_title,
position: "center", position: "center",
toolbar: true, toolbar: false,
focus: true, focus: true,
width: width, width: width,
height: height, height: height,
......
...@@ -229,7 +229,9 @@ ...@@ -229,7 +229,9 @@
"forums": "Forums", "forums": "Forums",
"forums_tt": "Open a link in a browser for the Pd Forum", "forums_tt": "Open a link in a browser for the Pd Forum",
"irc": "IRC Chat", "irc": "IRC Chat",
"irc_tt": "Open a link in a browser for IRC Chat" "irc_tt": "Open a link in a browser for IRC Chat",
"devtools": "Show DevTools",
"devtools_tt": "Show the DevTools window (for debugging)"
}, },
"canvas": { "canvas": {
"prop": { "prop": {
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"version": "0.1.0", "version": "0.1.0",
"main": "index.html", "main": "index.html",
"window": { "window": {
"toolbar": true "toolbar": false
} }
} }
...@@ -1334,6 +1334,16 @@ function nw_create_patch_window_menus(name) { ...@@ -1334,6 +1334,16 @@ function nw_create_patch_window_menus(name) {
tooltip: l("menu.irc_tt"), tooltip: l("menu.irc_tt"),
})); }));
helpMenu.append(new gui.MenuItem({
label: l("menu.devtools"),
key: "b",
modifiers: "ctrl",
click: function () {
gui.Window.get().showDevTools();
},
tooltip: l("menu.devtools_tt"),
}));
// Assign to window // Assign to window
gui.Window.get().menu = windowMenu; gui.Window.get().menu = windowMenu;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment