1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:02:26 +01:00

added liberator.config.visualbellWindow for generic vb support.

This commit is contained in:
Tim Hammerquist
2008-06-26 09:58:07 +00:00
parent e4b247f3f7
commit 76bceff5b2
4 changed files with 6 additions and 1 deletions

View File

@@ -507,7 +507,7 @@ const liberator = (function () //{{{
{ {
// flash the visual bell // flash the visual bell
var popup = document.getElementById("liberator-visualbell"); var popup = document.getElementById("liberator-visualbell");
var win = getBrowser().mPanelContainer; var win = liberator.config.visualbellWindow;
var box = document.getBoxObjectFor(win); var box = document.getBoxObjectFor(win);
popup.style.cssText = vbs; popup.style.cssText = vbs;

View File

@@ -43,6 +43,7 @@ liberator.config = {
GetThreadTree(); GetThreadTree();
}, },
get mainWindowID() { return this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow"; }, get mainWindowID() { return this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow"; },
get visualbellWindow() { return document.getElementById(this.mainWindowID); },
isComposeWindow: false, isComposeWindow: false,
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"], autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],

View File

@@ -77,6 +77,8 @@ the terms of any one of the MPL, the GPL or the LGPL.
<!-- other keys are handled inside the event loop in events.js --> <!-- other keys are handled inside the event loop in events.js -->
</keyset> </keyset>
<panel id="liberator-visualbell"/>
<statusbar id="status-bar" class="hl-StatusLine"> <statusbar id="status-bar" class="hl-StatusLine">
<hbox insertafter="statusTextBox" id="liberator-statusline" flex="1" height="10" hidden="false" align="center"> <hbox insertafter="statusTextBox" id="liberator-statusline" flex="1" height="10" hidden="false" align="center">
<statusbarpanel class="plain" id="liberator-statusline-field-url" readonly="false" flex="1" crop="end"/> <statusbarpanel class="plain" id="liberator-statusline-field-url" readonly="false" flex="1" crop="end"/>

View File

@@ -36,6 +36,8 @@ liberator.config = { //{{{
defaults: { guioptions: "" }, defaults: { guioptions: "" },
guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] }, guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] },
get visualbellWindow() { return getBrowser().mPanelContainer; },
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"], autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
["PageLoadPre", "Triggered after a page load is initiated"], ["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"], ["PageLoad", "Triggered when a page gets (re)loaded/opened"],