mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Remove config.mainWindowID tests from common/*.
This commit is contained in:
@@ -43,8 +43,7 @@ function Buffer() //{{{
|
|||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
// FIXME: This doesn't belong here.
|
// FIXME: This doesn't belong here.
|
||||||
let mainWindowID = config.mainWindowID || "main-window";
|
let fontSize = util.computedStyle(document.getElementById(config.mainWindowID)).fontSize;
|
||||||
let fontSize = util.computedStyle(document.getElementById(mainWindowID)).fontSize;
|
|
||||||
|
|
||||||
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
||||||
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ const configbase = { //{{{
|
|||||||
*/
|
*/
|
||||||
ignoreKeys: {}, // XXX: be aware you can't put useful values in here, as "modes.NORMAL" etc. are not defined at this time
|
ignoreKeys: {}, // XXX: be aware you can't put useful values in here, as "modes.NORMAL" etc. are not defined at this time
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {string} The ID of the application's main XUL window.
|
||||||
|
*/
|
||||||
|
mainWindowID: document.documentElement.id,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {[[]]} An array of application specific mode specifications.
|
* @property {[[]]} An array of application specific mode specifications.
|
||||||
* The values of each mode are passed to modes.addMode during
|
* The values of each mode are passed to modes.addMode during
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const config = { //{{{
|
|||||||
/*** required options, no checks done if they really exist, so be careful ***/
|
/*** required options, no checks done if they really exist, so be careful ***/
|
||||||
name: "Muttator",
|
name: "Muttator",
|
||||||
hostApplication: "Thunderbird", // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName");
|
hostApplication: "Thunderbird", // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName");
|
||||||
|
get mainWindowID() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
|
||||||
|
|
||||||
/*** optional options, there are checked for existence and a fallback provided ***/
|
/*** optional options, there are checked for existence and a fallback provided ***/
|
||||||
features: ["hints", "mail", "marks", "addressbook", "tabs"],
|
features: ["hints", "mail", "marks", "addressbook", "tabs"],
|
||||||
@@ -50,7 +51,6 @@ const config = { //{{{
|
|||||||
get mailModes() [modes.NORMAL],
|
get mailModes() [modes.NORMAL],
|
||||||
// focusContent() focuses this widget
|
// focusContent() focuses this widget
|
||||||
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
||||||
get mainWindowID() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
|
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowID),
|
get visualbellWindow() document.getElementById(this.mainWindowID),
|
||||||
styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul",
|
styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul",
|
||||||
|
|
||||||
|
|||||||
@@ -485,8 +485,7 @@ const config = { //{{{
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
let id = config.mainWindowID || "main-window";
|
document.getElementById(config.mainWindowID).setAttribute("titlemodifier", value);
|
||||||
document.getElementById(id).setAttribute("titlemodifier", value);
|
|
||||||
if (window.content.document.title.length > 0)
|
if (window.content.document.title.length > 0)
|
||||||
document.title = window.content.document.title + " - " + value;
|
document.title = window.content.document.title + " - " + value;
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const config = { //{{{
|
|||||||
/*** required options, no checks done if they really exist, so be careful ***/
|
/*** required options, no checks done if they really exist, so be careful ***/
|
||||||
name: "Xulmus",
|
name: "Xulmus",
|
||||||
hostApplication: "Songbird",
|
hostApplication: "Songbird",
|
||||||
//mainWindowID: "mainplayer",
|
|
||||||
/*** optional options, there are checked for existence and a fallback provided ***/
|
/*** optional options, there are checked for existence and a fallback provided ***/
|
||||||
features: ["bookmarks", "hints", "marks", "history", "quickmarks", "session", "tabs", "windows", "player"],
|
features: ["bookmarks", "hints", "marks", "history", "quickmarks", "session", "tabs", "windows", "player"],
|
||||||
defaults: {
|
defaults: {
|
||||||
@@ -48,7 +48,6 @@ const config = { //{{{
|
|||||||
|
|
||||||
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
|
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
|
||||||
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
||||||
get mainWindowID() "mainplayer",
|
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowID),
|
get visualbellWindow() document.getElementById(this.mainWindowID),
|
||||||
|
|
||||||
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
||||||
@@ -537,8 +536,7 @@ const config = { //{{{
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
let id = this.mainWindowID || "mainplayer";
|
document.getElementById(config.mainWindowID).setAttribute("titlemodifier", value);
|
||||||
document.getElementById(id).setAttribute("titlemodifier", value);
|
|
||||||
if (window.content.document.title.length > 0)
|
if (window.content.document.title.length > 0)
|
||||||
document.title = window.content.document.title + " - " + value;
|
document.title = window.content.document.title + " - " + value;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user