1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-06 12:15:45 +01:00

Fix tab numbering.

This commit is contained in:
Kris Maglione
2008-11-29 13:22:15 +00:00
parent b6c5bea5a1
commit b4d2e52eec
3 changed files with 10 additions and 14 deletions

View File

@@ -717,7 +717,7 @@ function Events() //{{{
function (args) { completion.listCompleter("macro", args[0]) }, function (args) { completion.listCompleter("macro", args[0]) },
{ {
argCount: "?", argCount: "?",
completer: function (context) completion.macro(context), completer: function (context) completion.macro(context)
}); });
commands.add(["pl[ay]"], commands.add(["pl[ay]"],

View File

@@ -221,7 +221,7 @@ function Tabs() //{{{
}); });
// TODO: Add option, or only apply when go~=[nN] // TODO: Add option, or only apply when go~=[nN]
styles.addSheet("tab-binding", "chrome://*", styles.addSheet("tab-binding", "chrome://*",
".tabbrowser-tab { -moz-binding: url(chrome://liberator/content/vimperator/bindings.xml#tab); }", true); ".tabbrowser-tab { -moz-binding: url(chrome://liberator/content/vimperator/bindings.xml#tab) !important; }", true);
} }

View File

@@ -1,34 +1,30 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE bindings [ <!DOCTYPE bindings [
<!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd" >
%tabBrowserDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD; %globalDTD;
]> ]>
<bindings xmlns="http://www.mozilla.org/xbl" <bindings xmlns="http://www.mozilla.org/xbl"
xmlns:liberator="http://vimperator.org/namespaces/liberator"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"> xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="tab" display="xul:hbox"
<binding id="tab"
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab"> extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
<content chromedir="&locale.dir;" <content chromedir="ltr" closetabtext="Close Tab">
closetabtext="&closeTab.label;">
<xul:stack class="liberator-tab-stack"> <xul:stack class="liberator-tab-stack">
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image hl-TabIcon"/> <xul:image xbl:inherits="validate,src=image" class="tab-icon-image" liberator:highlight="TabIcon"/>
<xul:vbox> <xul:vbox>
<xul:spring flex="1"/> <xul:spring flex="1"/>
<xul:label xbl:inherits="value=ordinal" class="hl-TabIconNumber"/> <xul:label xbl:inherits="value=ordinal" liberator:highlight="TabIconNumber"/>
<xul:spring flex="1"/> <xul:spring flex="1"/>
</xul:vbox> </xul:vbox>
</xul:stack> </xul:stack>
<xul:label xbl:inherits="value=ordinal" class="hl-TabNumber"/> <xul:label xbl:inherits="value=ordinal" liberator:highlight="TabNumber"/>
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text hl-TabText"/> <xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text" liberator:highlight="TabText"/>
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button hl-TabClose"/> <xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/>
</content> </content>
</binding> </binding>
</bindings> </bindings>
<!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->