mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:12:26 +01:00
unbreak muttator's completions again. I can't say if tab numbering in vimperator still works, as it didn't for me before this commit either.
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
<?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;
|
||||||
]>
|
]>
|
||||||
@@ -18,23 +16,6 @@
|
|||||||
<children/>
|
<children/>
|
||||||
</content>
|
</content>
|
||||||
</binding>
|
</binding>
|
||||||
<binding id="tab"
|
|
||||||
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
|
|
||||||
<content chromedir="&locale.dir;"
|
|
||||||
closetabtext="&closeTab.label;">
|
|
||||||
<xul:stack class="liberator-tab-stack">
|
|
||||||
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image hl-TabIcon"/>
|
|
||||||
<xul:vbox>
|
|
||||||
<xul:spring flex="1"/>
|
|
||||||
<xul:label xbl:inherits="value=ordinal" class="hl-TabIconNumber"/>
|
|
||||||
<xul:spring flex="1"/>
|
|
||||||
</xul:vbox>
|
|
||||||
</xul:stack>
|
|
||||||
<xul:label xbl:inherits="value=ordinal" class="hl-TabNumber"/>
|
|
||||||
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text hl-TabText"/>
|
|
||||||
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button hl-TabClose"/>
|
|
||||||
</content>
|
|
||||||
</binding>
|
|
||||||
<binding id="compitem-td">
|
<binding id="compitem-td">
|
||||||
<!-- No white space. The table is white-space: pre; :( -->
|
<!-- No white space. The table is white-space: pre; :( -->
|
||||||
<content><html:span class="td-strut"/><html:span class="td-span"><children/></html:span></content>
|
<content><html:span class="td-strut"/><html:span class="td-span"><children/></html:span></content>
|
||||||
|
|||||||
@@ -231,7 +231,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/bindings.xml#tab); }", true);
|
".tabbrowser-tab { -moz-binding: url(chrome://liberator/content/vimperator/bindings.xml#tab); }", true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
34
content/vimperator/bindings.xml
Normal file
34
content/vimperator/bindings.xml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<!DOCTYPE bindings [
|
||||||
|
<!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd" >
|
||||||
|
%tabBrowserDTD;
|
||||||
|
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
|
||||||
|
%globalDTD;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<bindings xmlns="http://www.mozilla.org/xbl"
|
||||||
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
|
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||||
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<binding id="tab"
|
||||||
|
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
|
||||||
|
<content chromedir="&locale.dir;"
|
||||||
|
closetabtext="&closeTab.label;">
|
||||||
|
<xul:stack class="liberator-tab-stack">
|
||||||
|
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image hl-TabIcon"/>
|
||||||
|
<xul:vbox>
|
||||||
|
<xul:spring flex="1"/>
|
||||||
|
<xul:label xbl:inherits="value=ordinal" class="hl-TabIconNumber"/>
|
||||||
|
<xul:spring flex="1"/>
|
||||||
|
</xul:vbox>
|
||||||
|
</xul:stack>
|
||||||
|
<xul:label xbl:inherits="value=ordinal" class="hl-TabNumber"/>
|
||||||
|
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text hl-TabText"/>
|
||||||
|
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button hl-TabClose"/>
|
||||||
|
</content>
|
||||||
|
</binding>
|
||||||
|
</bindings>
|
||||||
|
|
||||||
|
<!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->
|
||||||
Reference in New Issue
Block a user