[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbutton/master] Make icon tooltip state current tor status.
commit 3110f276150c36e8b692f464ca6092c1229e8805
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Wed Jun 29 18:06:29 2011 -0700
Make icon tooltip state current tor status.
Since clicking on torbutton no longer toggles Tor state, we should just
display the current state in the tooltip.
---
src/chrome/content/torbutton.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index e620fec..9c720e1 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -939,11 +939,11 @@ function torbutton_update_toolbutton(mode)
var tooltip = "";
if (mode) {
- tooltip = o_stringbundle.GetStringFromName("torbutton.button.tooltip.enabled");
+ tooltip = o_stringbundle.GetStringFromName("torbutton.panel.label.enabled");
o_toolbutton.setAttribute('tbstatus', 'on');
o_toolbutton.setAttribute('tooltiptext', tooltip);
} else {
- tooltip = o_stringbundle.GetStringFromName("torbutton.button.tooltip.disabled");
+ tooltip = o_stringbundle.GetStringFromName("torbutton.panel.label.disabled");
o_toolbutton.setAttribute('tbstatus', 'off');
o_toolbutton.setAttribute('tooltiptext', tooltip);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits