1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Update tab binding for 4.0b7. Needs to be applied earlier, still.

This commit is contained in:
Kris Maglione
2010-09-20 08:51:52 -04:00
parent f888d50f6b
commit 7afdad0d31
3 changed files with 28 additions and 17 deletions

View File

@@ -21,9 +21,16 @@
<binding id="tab" display="xul:hbox" <binding id="tab" display="xul:hbox"
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab"> extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
<content context="tabContextMenu" closetabtext="Close Tab"> <content context="tabContextMenu" closetabtext="Close Tab">
<xul:stack class="tab-stack" flex="1">
<xul:vbox class="tab-progress-container">
<xul:progressmeter class="tab-progress" mode="normal"
xbl:inherits="value=progresspercent,busy,stalled,fadein,selected"/>
</xul:vbox>
<xul:hbox class="tab-content" align="center">
<xul:stack class="tab-icon dactyl-tab-stack"> <xul:stack class="tab-icon dactyl-tab-stack">
<xul:image xbl:inherits="validate,src=image" role="presentation" <xul:image xbl:inherits="validate,src=image,fadein,pinned,busy,stalled,selected"
class="tab-icon-image" dactyl:highlight="TabIcon"/> class="tab-icon-image" dactyl:highlight="TabIcon"
role="presentation"/>
<xul:vbox> <xul:vbox>
<xul:spring flex="1"/> <xul:spring flex="1"/>
<xul:label xbl:inherits="value=ordinal" dactyl:highlight="TabIconNumber"/> <xul:label xbl:inherits="value=ordinal" dactyl:highlight="TabIconNumber"/>
@@ -32,12 +39,16 @@
</xul:stack> </xul:stack>
<xul:label xbl:inherits="value=ordinal" dactyl:highlight="TabNumber"/> <xul:label xbl:inherits="value=ordinal" dactyl:highlight="TabNumber"/>
<xul:label flex="1" <xul:label flex="1"
xbl:inherits="value=label,crop,accesskey" xbl:inherits="value=label,crop,accesskey,fadein,pinned,selected"
class="tab-text" dactyl:highlight="TabText" class="tab-text" dactyl:highlight="TabText"
role="presentation"/> role="presentation"/>
<xul:toolbarbutton anonid="close-button" <xul:toolbarbutton anonid="close-button"
xbl:inherits="fadein,pinned,selected"
tabindex="-1" tabindex="-1"
clickthrough="never"
class="tab-close-button" dactyl:highlight="TabClose"/> class="tab-close-button" dactyl:highlight="TabClose"/>
</xul:hbox>
</xul:stack>
</content> </content>
</binding> </binding>

View File

@@ -912,7 +912,7 @@ const Commands = Module("commands", {
} }
// dynamically get completions as specified with the command's completer function // dynamically get completions as specified with the command's completer function
let command = commands.get(cmd); let command = cmd && commands.get(cmd);
if (!command) { if (!command) {
context.highlight(0, cmd && cmd.length, "SPELLCHECK"); context.highlight(0, cmd && cmd.length, "SPELLCHECK");
return; return;

View File

@@ -14,7 +14,7 @@
<Description <Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="3.5" em:minVersion="3.5"
em:maxVersion="4.0b7pre"/> em:maxVersion="4.0b8pre"/>
</em:targetApplication> </em:targetApplication>
</Description> </Description>
</RDF> </RDF>