mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:37:58 +01:00
fixed muttator to comply with new Thunderbird API
This commit is contained in:
@@ -34,6 +34,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
]>
|
]>
|
||||||
|
|
||||||
<overlay id="liberator"
|
<overlay id="liberator"
|
||||||
|
xmlns:liberator="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
@@ -50,7 +51,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
</keyset>
|
</keyset>
|
||||||
|
|
||||||
<popupset>
|
<popupset>
|
||||||
<panel id="liberator-visualbell"/>
|
<panel id="liberator-visualbell" liberator:highlight="Bell"/>
|
||||||
</popupset>
|
</popupset>
|
||||||
|
|
||||||
<!--this notifies us also of focus events in the XUL
|
<!--this notifies us also of focus events in the XUL
|
||||||
@@ -78,7 +79,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
onclick="liberator.modules.commandline.onMultilineOutputEvent(event)"/>
|
onclick="liberator.modules.commandline.onMultilineOutputEvent(event)"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<hbox id="liberator-commandline" hidden="false" class="hl-Normal">
|
<hbox id="liberator-commandline" hidden="false" liberator:highlight="Normal">
|
||||||
<label class="plain" id="liberator-commandline-prompt" flex="0" crop="end" value="" collapsed="true"/>
|
<label class="plain" id="liberator-commandline-prompt" flex="0" crop="end" value="" collapsed="true"/>
|
||||||
<textbox class="plain" id="liberator-commandline-command" flex="1" type="timed" timeout="100"
|
<textbox class="plain" id="liberator-commandline-command" flex="1" type="timed" timeout="100"
|
||||||
oninput="liberator.modules.commandline.onEvent(event);"
|
oninput="liberator.modules.commandline.onEvent(event);"
|
||||||
@@ -95,7 +96,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
|
|
||||||
</window>
|
</window>
|
||||||
|
|
||||||
<statusbar id="status-bar" class="hl-StatusLine">
|
<statusbar id="status-bar" liberator:highlight="StatusLine">
|
||||||
<hbox insertbefore="&liberator.statusBefore;" insertafter="&liberator.statusAfter;"
|
<hbox insertbefore="&liberator.statusBefore;" insertafter="&liberator.statusAfter;"
|
||||||
id="liberator-statusline" flex="1" hidden="false" align="center">
|
id="liberator-statusline" flex="1" hidden="false" align="center">
|
||||||
<textbox class="plain" id="liberator-statusline-field-url" readonly="false" flex="1" crop="end"/>
|
<textbox class="plain" id="liberator-statusline-field-url" readonly="false" flex="1" crop="end"/>
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ function IO() //{{{
|
|||||||
const WINDOWS = liberator.has("Win32");
|
const WINDOWS = liberator.has("Win32");
|
||||||
const EXTENSION_NAME = config.name.toLowerCase(); // "vimperator" or "muttator"
|
const EXTENSION_NAME = config.name.toLowerCase(); // "vimperator" or "muttator"
|
||||||
|
|
||||||
|
const ioService = Components.classes['@mozilla.org/network/io-service;1']
|
||||||
|
.getService(Components.interfaces.nsIIOService);
|
||||||
const environmentService = Components.classes["@mozilla.org/process/environment;1"]
|
const environmentService = Components.classes["@mozilla.org/process/environment;1"]
|
||||||
.getService(Components.interfaces.nsIEnvironment);
|
.getService(Components.interfaces.nsIEnvironment);
|
||||||
const directoryService = Components.classes["@mozilla.org/file/directory_service;1"]
|
const directoryService = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||||
@@ -817,7 +819,7 @@ lookup:
|
|||||||
liberator.echomsg("sourcing \"" + filename + "\"", 2);
|
liberator.echomsg("sourcing \"" + filename + "\"", 2);
|
||||||
|
|
||||||
let str = ioManager.readFile(file);
|
let str = ioManager.readFile(file);
|
||||||
let uri = makeFileURI(file);
|
let uri = ioService.newFileURI(file);
|
||||||
|
|
||||||
// handle pure javascript files specially
|
// handle pure javascript files specially
|
||||||
if (/\.js$/.test(filename))
|
if (/\.js$/.test(filename))
|
||||||
|
|||||||
@@ -601,7 +601,7 @@ function Mail() //{{{
|
|||||||
{
|
{
|
||||||
var value = gPrefBranch.getIntPref("mail.show_headers", 2);
|
var value = gPrefBranch.getIntPref("mail.show_headers", 2);
|
||||||
gPrefBranch.setIntPref("mail.show_headers", value == 2 ? 1 : 2);
|
gPrefBranch.setIntPref("mail.show_headers", value == 2 ? 1 : 2);
|
||||||
MsgReload();
|
ReloadMessage();
|
||||||
});
|
});
|
||||||
|
|
||||||
mappings.add(myModes, ["x"],
|
mappings.add(myModes, ["x"],
|
||||||
@@ -1034,7 +1034,7 @@ function Mail() //{{{
|
|||||||
gPrefBranch.setBoolPref("mailnews.display.prefer_plaintext", values[value][0]);
|
gPrefBranch.setBoolPref("mailnews.display.prefer_plaintext", values[value][0]);
|
||||||
gPrefBranch.setIntPref("mailnews.display.html_as", values[value][1]);
|
gPrefBranch.setIntPref("mailnews.display.html_as", values[value][1]);
|
||||||
gPrefBranch.setIntPref("mailnews.display.disallow_mime_handlers", values[value][2]);
|
gPrefBranch.setIntPref("mailnews.display.disallow_mime_handlers", values[value][2]);
|
||||||
MsgReload();
|
ReloadMessage();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//}}}
|
//}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user