Added charset submenu to the context menu, written by jbetak, bug 70830, r=nhotta, sr=alecf.

This commit is contained in:
nhotta%netscape.com 2001-11-27 00:54:01 +00:00
parent 1e969d3f91
commit be656290c2
2 changed files with 25 additions and 0 deletions

View File

@ -106,6 +106,10 @@
label="&viewBGImageCmd.label;"
accesskey="&viewBGImageCmd.accesskey;"
oncommand="gContextMenu.viewBGImage();"/>
<menu id="browserContextCharsetMenu"
onpopupshowing="CreateMenu('browser');UpdateMenus(event)"
oncommand="MultiplexHandler(event)"/>
<menuseparator id="context-sep-view"/>
<!-- Misc ==================================== -->
<menuitem id="context-bookmarkpage"

View File

@ -318,4 +318,25 @@
<menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
</menupopup>
</menu>
<!-- Browser Context Charset Menu -->
<menu id="browserContextCharsetMenu" label="&charsetMenu.label;" accesskey="&charsetMenu.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
<menupopup>
<menuseparator uri="..." />
</menupopup>
</rule>
<rule>
<menupopup>
<menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
</menupopup>
</rule>
</template>
<menupopup>
<menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
</menupopup>
</menu>
</overlay>