Bug 590744 - Add an edit sub menu to the Firefox menu [r=dao, a=blocking-betaN]

This commit is contained in:
Margaret Leibovic 2011-02-02 16:17:29 -05:00
parent e214e641ee
commit c8c1f63650
4 changed files with 61 additions and 7 deletions

View File

@ -101,6 +101,45 @@
command="cmd_paste"
onclick="if (!this.disabled) hidePopup();"
tooltiptext="&pasteButton.tooltip;"/>
<spacer flex="1"/>
<menu id="appmenu-editmenu">
<menupopup id="appmenu-editmenu-menupopup">
<menuitem id="appmenu-editmenu-cut"
class="menuitem-iconic"
label="&cutCmd.label;"
key="key_cut"
command="cmd_cut"/>
<menuitem id="appmenu-editmenu-copy"
class="menuitem-iconic"
label="&copyCmd.label;"
key="key_copy"
command="cmd_copy"/>
<menuitem id="appmenu-editmenu-paste"
class="menuitem-iconic"
label="&pasteCmd.label;"
key="key_paste"
command="cmd_paste"/>
<menuseparator/>
<menuitem id="appmenu-editmenu-undo"
label="&undoCmd.label;"
key="key_undo"
command="cmd_undo"/>
<menuitem id="appmenu-editmenu-redo"
label="&redoCmd.label;"
key="key_redo"
command="cmd_redo"/>
<menuseparator/>
<menuitem id="appmenu-editmenu-selectAll"
label="&selectAllCmd.label;"
key="key_selectAll"
command="cmd_selectAll"/>
<menuseparator/>
<menuitem id="appmenu-editmenu-delete"
label="&deleteCmd.label;"
key="key_delete"
command="cmd_delete"/>
</menupopup>
</menu>
</hbox>
<menuitem id="appmenu_find"
class="menuitem-tooltip"

View File

@ -166,7 +166,9 @@ splitmenu {
}
.splitmenu-menu > .menu-text,
:-moz-any(.splitmenu-menu, .splitmenu-menuitem) > .menu-accel-container {
:-moz-any(.splitmenu-menu, .splitmenu-menuitem) > .menu-accel-container,
#appmenu-editmenu > .menu-text,
#appmenu-editmenu > .menu-accel-container {
display: none;
}

View File

@ -1739,13 +1739,16 @@ toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
#appmenuSecondaryPane-spacer {
min-height: 1em;
}
#appmenu-cut {
#appmenu-cut,
#appmenu-editmenu-cut {
list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
}
#appmenu-copy {
#appmenu-copy,
#appmenu-editmenu-copy {
list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
}
#appmenu-paste {
#appmenu-paste,
#appmenu-editmenu-paste {
list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
}
#wrapper-appmenu-toolbar-button,

View File

@ -342,22 +342,32 @@
min-height: 1em;
}
#appmenu-editmenu {
-moz-box-pack: end;
}
#appmenu_print,
#appmenu_print_popup,
.appmenu-edit-button,
#appmenu-editmenu-cut,
#appmenu-editmenu-copy,
#appmenu-editmenu-paste,
#appmenu-quit {
list-style-image: url("appmenu-icons.png");
}
#appmenu-cut {
#appmenu-cut,
#appmenu-editmenu-cut {
-moz-image-region: rect(0 16px 16px 0);
}
#appmenu-copy {
#appmenu-copy,
#appmenu-editmenu-copy {
-moz-image-region: rect(0 32px 16px 16px);
}
#appmenu-paste {
#appmenu-paste,
#appmenu-editmenu-paste {
-moz-image-region: rect(0 48px 16px 32px);
}