hook up the language encoding menus to the fonts panel

git-svn-id: svn://10.0.0.236/trunk@170403 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2005-03-08 23:00:01 +00:00
parent 7224d286ba
commit 7985265ef4
2 changed files with 16 additions and 4 deletions

View File

@@ -72,7 +72,19 @@ var gDisplayPane = {
fontOptionsDialog: function()
{
document.documentElement.openSubDialog("chrome://messenger/content/preferences/fonts.xul",
"", null);
document.documentElement.openSubDialog("chrome://messenger/content/preferences/fonts.xul", "", null);
},
mCharsetMenuInitialized: false,
readDefaultCharset: function()
{
if (!this.mCharsetMenuInitialized)
{
var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
os.notifyObservers(null, "charsetmenu-selected", "mailedit");
this.mCharsetMenuInitialized = true;
}
return undefined;
},
};

View File

@@ -226,9 +226,9 @@
<rows>
<row align="center" class="indent">
<label control="sendDefaultCharsetList"
value="&sendDefaultCharset.label;" accesskey="&sendDefaultCharset.accesskey;" page="sendDefaultCharsetList"/>
value="&sendDefaultCharset.label;" accesskey="&sendDefaultCharset.accesskey;"/>
<menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
preference="mailnews.send_default_charset">
preference="mailnews.send_default_charset" onpreferenceread="return gDisplayPane.readDefaultCharset();">
<template>
<menupopup>
<menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>