1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 00:14:14 +01:00

Check for the existence of certain dialogs. Closes issue #129.

This commit is contained in:
Kris Maglione
2010-11-12 00:09:56 -05:00
parent 1f8bd6ee81
commit a284543f45
2 changed files with 10 additions and 4 deletions

View File

@@ -46,7 +46,8 @@ const Config = Module("config", ConfigBase, {
bookmarks: ["List your bookmarks",
function () { window.openDialog("chrome://browser/content/bookmarks/bookmarksPanel.xul", "Bookmarks", "dialog,centerscreen,width=600,height=600"); }],
checkupdates: ["Check for updates",
function () { window.checkForUpdates(); }],
function () { window.checkForUpdates(); },
function () "checkForUpdates" in window],
cleardata: ["Clear private data",
function () { Cc["@mozilla.org/browser/browserglue;1"].getService(Ci.nsIBrowserGlue).sanitize(window || null); }],
cookies: ["List your cookies",
@@ -56,7 +57,8 @@ const Config = Module("config", ConfigBase, {
customizetoolbar: ["Customize the Toolbar",
function () { window.BrowserCustomizeToolbar(); }],
dominspector: ["DOM Inspector",
function () { try { window.inspectDOMDocument(content.document); } catch (e) { dactyl.echoerr("DOM Inspector extension not installed"); } }],
function () { window.inspectDOMDocument(content.document); },
function () "inspectDOMDocument" in window],
downloads: ["Manage Downloads",
function () { window.toOpenWindowByType("Download:Manager", "chrome://mozapps/content/downloads/downloads.xul", "chrome,dialog=no,resizable"); }],
history: ["List your history",
@@ -90,7 +92,8 @@ const Config = Module("config", ConfigBase, {
selectionsource: ["View selection source",
function () { buffer.viewSelectionSource(); }],
venkman: ["The JavaScript debugger",
function () { dactyl.assert("start_venkman" in window, "Venkman is not installed"); start_venkman() }]
function () { dactyl.assert("start_venkman" in window, "Venkman is not installed"); start_venkman() },
function () "start_venkman" in window]
},
features: [