[Pkg-mozext-commits] [tabmixplus] 12/44: Use getBindingParent to call methods in shortcuts.xml and pref-appearance.xml
David Prévot
taffit at moszumanska.debian.org
Wed Oct 15 02:09:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 96a2ce9845ec27e407f5901603032d6cadd54450
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Oct 2 21:23:06 2014 +0300
Use getBindingParent to call methods in shortcuts.xml and pref-appearance.xml
---
chrome/content/preferences/shortcuts.xml | 10 +++++-----
chrome/content/preferences/subdialogs/pref-appearance.xml | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/chrome/content/preferences/shortcuts.xml b/chrome/content/preferences/shortcuts.xml
index cf40257..b15284e 100644
--- a/chrome/content/preferences/shortcuts.xml
+++ b/chrome/content/preferences/shortcuts.xml
@@ -17,15 +17,15 @@
<xul:textbox class="shortcut-edit-box" anonid="editBox" style="width:200px;"
xbl:inherits="value,disabled=blocked" context=" "
placeholder="&shortcuts.placeholder;"
- onkeypress="handleKeyEvents(event);"
- onfocus="updateFocus(true);"
- onblur="updateFocus(false);"
+ onkeypress="document.getBindingParent(this).handleKeyEvents(event);"
+ onfocus="document.getBindingParent(this).updateFocus(true);"
+ onblur="document.getBindingParent(this).updateFocus(false);"
onmousedown="event.stopPropagation(); event.preventDefault(); this.select();"
onchange="event.stopPropagation();">
<xul:image anonid="reset" class="shortcut-image" tooltiptext="&shortcuts.reset;" hidden="true"
- onclick="resetKey();"/>
+ onclick="document.getBindingParent(this).resetKey();"/>
<xul:image anonid="disable" class="shortcut-image" tooltiptext="&shortcuts.clear;"
- onclick="disableKey();"/>
+ onclick="document.getBindingParent(this).disableKey();"/>
</xul:textbox>
</xul:hbox>
<xul:vbox anonid="notificationbox" class="shortcut-notificationbox"
diff --git a/chrome/content/preferences/subdialogs/pref-appearance.xml b/chrome/content/preferences/subdialogs/pref-appearance.xml
index 810c9e4..1893192 100644
--- a/chrome/content/preferences/subdialogs/pref-appearance.xml
+++ b/chrome/content/preferences/subdialogs/pref-appearance.xml
@@ -16,7 +16,7 @@
<content orient="vertical">
<xul:hbox align="center">
<xul:checkbox anonid="useThis" label="&useThis.label;: "
- oncommand="_updateUseThisState(this.checked); event.stopPropagation();"/>
+ oncommand="document.getBindingParent(this)._updateUseThisState(this.checked); event.stopPropagation();"/>
<xul:label style="font-weight: bold;"/>
</xul:hbox>
<xul:separator class="groove"/>
@@ -29,12 +29,12 @@
<xul:vbox>
<xul:colorbox anonid="textColor" xbl:inherits="disabled=text-disabled,_hidebox">
<xul:checkbox anonid="text" class="visible" xbl:inherits="disabled" label="&textcolor.label;:"
- oncommand="updateDisableState(this.getAttribute('anonid'))"/>
+ oncommand="document.getBindingParent(this).updateDisableState(this.getAttribute('anonid'))"/>
</xul:colorbox>
<xul:checkbox_tmp anonid="bg" xbl:inherits="disabled" label="&bgColor.label;:"
- oncommand="updateDisableState(this.getAttribute('anonid'))"/>
+ oncommand="document.getBindingParent(this).updateDisableState(this.getAttribute('anonid'))"/>
<xul:colorbox anonid="bgTopColor" class="bgTop" xbl:inherits="disabled=bg-disabled,hidden=_hidebox">
- <xul:label value="&bgTopColor.label;:" class="visible" xbl:inherits="disabled=bg-disabled"/>
+ <xul:label value="&bgTopColor.label;:" class="visible" xbl:inherits="disabled=bg-disabled"/>
</xul:colorbox>
<xul:colorbox anonid="bgColor" class="bgBottom" xbl:inherits="disabled=bg-disabled">
<xul:label value="&bgBottomColor.label;:" class="visible" xbl:inherits="disabled=bg-disabled,_hidebox"/>
@@ -44,7 +44,7 @@
</xul:hbox>
<xul:separator class="groove"/>
<xul:hbox align="center">
- <xul:button label="&settings.default;" oncommand="_resetDefault();"/>
+ <xul:button label="&settings.default;" oncommand="document.getBindingParent(this)._resetDefault();"/>
</xul:hbox>
</content>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list