Bug 233461 Add button icons on the new preferences dialog

r=mconnor
This commit is contained in:
marco%gnome.org 2005-03-07 09:53:07 +00:00
parent 97d51fb65e
commit e042062105
3 changed files with 12 additions and 7 deletions

View File

@ -83,9 +83,9 @@
</tree>
<separator class="thin"/>
<hbox>
<button id="removeSignon" disabled="true"
<button id="removeSignon" disabled="true" icon="remove"
label="&remove.label;" oncommand="DeleteSignon();"/>
<button id="removeAllSignons"
<button id="removeAllSignons" icon="clear"
label="&removeall.label;"
oncommand="DeleteAllSignons();"/>
<spacer flex="1"/>
@ -108,10 +108,10 @@
</tree>
<separator class="thin"/>
<hbox>
<button id="removeReject" disabled="true"
<button id="removeReject" disabled="true" icon="remove"
label="&remove.label;" oncommand="DeleteReject();"/>
<button id="removeAllRejects"
label="&removeall.label;"
icon="clear" label="&removeall.label;"
oncommand="DeleteAllRejects();"/>
</hbox>
</vbox>

View File

@ -410,10 +410,10 @@
<xul:hbox pack="end" anonid="dlg-buttons" class="prefWindow-dlgbuttons">
<xul:button dlgtype="extra2" class="dialog-button" hidden="true"/>
<xul:spacer anonid="spacer" flex="1" hidden="true"/>
<xul:button dlgtype="accept" class="dialog-button"/>
<xul:button dlgtype="accept" class="dialog-button" icon="accept"/>
<xul:button dlgtype="extra1" class="dialog-button" hidden="true"/>
<xul:button dlgtype="cancel" class="dialog-button"/>
<xul:button dlgtype="help" class="dialog-button" hidden="true"/>
<xul:button dlgtype="cancel" class="dialog-button" icon="cancel"/>
<xul:button dlgtype="help" class="dialog-button" hidden="true" icon="help"/>
<xul:button dlgtype="disclosure" class="dialog-button" hidden="true"/>
</xul:hbox>
<xul:hbox>
@ -440,6 +440,7 @@
var acceptButton = docElt.getButton("accept");
acceptButton.hidden = true;
var cancelButton = docElt.getButton("cancel");
cancelButton.setAttribute ("icon", "close");
cancelButton.label = docElt.getAttribute("closebuttonlabel");
cancelButton.accesskey = docElt.getAttribute("closebuttonaccesskey");
#endif

View File

@ -262,6 +262,10 @@ button[icon="select-font"] .button-icon {
list-style-image: url("moz-icon://stock/gtk-select-font?size=button");
}
button[icon="select-color"] .button-icon {
list-style-image: url("moz-icon://stock/gtk-color-picker?size=button");
}
button[icon="network"] .button-icon {
list-style-image: url("moz-icon://stock/gtk-network?size=button");
}