1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

Add 'titlestring' to Muttator.

This commit is contained in:
Doug Kearns
2009-07-15 17:59:57 +10:00
parent dbf017bf21
commit f57d0c05a9
5 changed files with 43 additions and 41 deletions

View File

@@ -35,7 +35,8 @@ const config = { //{{{
features: ["bookmarks", "hints", "history", "marks", "quickmarks", "session", "tabs", "tabUndo", "windows"],
defaults: {
guioptions: "rb",
showtabline: 2
showtabline: 2,
titlestring: "Vimperator"
},
guioptions: {
@@ -304,29 +305,6 @@ const config = { //{{{
getter: function () !services.get("io").offline
});
// TODO: merge with Vimperator version and add Muttator version
// (TB handles this differently).
options.add(["titlestring"],
"Change the title of the window",
"string", "Vimperator",
{
setter: function (value)
{
let elem = document.documentElement;
elem.setAttribute("titlemodifier", value);
// TODO: remove this FF3.5 test when we no longer support 3.0
if (services.get("privateBrowsing"))
{
elem.setAttribute("titlemodifier_privatebrowsing", value);
elem.setAttribute("titlemodifier_normal", value);
}
getBrowser().updateTitlebar();
return value;
}
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMPLETIONS /////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{