Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorEduardo Silva <edsiper@monotop.(none)>2007-06-21 19:10:12 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-21 19:07:58 (GMT)
commitb3def2644a6af2d1be2124a93161d4ad3b237ca3 (patch)
tree75e6c1964740cd95c14343cdb9e6e80e1884e68b /webtoolbar.py
parentf0c0da1c2990a4e1c5d178a59ee4b9cc864706a7 (diff)
button tooltips
Diffstat (limited to 'webtoolbar.py')
-rwxr-xr-xwebtoolbar.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index cfa360c..b012808 100755
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -23,6 +23,7 @@ from xpcom.components import interfaces
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics import AddressEntry
+from gettext import gettext as _
class _ProgressListener:
_com_interfaces_ = interfaces.nsIWebProgressListener
@@ -81,12 +82,14 @@ class WebToolbar(gtk.Toolbar):
self._browser = browser
self._back = ToolButton('go-previous')
+ self._back.set_tooltip(_('Back'))
self._back.props.sensitive = False
self._back.connect('clicked', self._go_back_cb)
self.insert(self._back, -1)
self._back.show()
self._forward = ToolButton('go-next')
+ self._forward.set_tooltip(_('Forward'))
self._forward.props.sensitive = False
self._forward.connect('clicked', self._go_forward_cb)
self.insert(self._forward, -1)
@@ -166,5 +169,7 @@ class WebToolbar(gtk.Toolbar):
if self._loading:
self._show_stop_icon()
+ self._stop_and_reload.set_tooltip(_('Stop'))
else:
- self._show_reload_icon() \ No newline at end of file
+ self._show_reload_icon()
+ self._stop_and_reload.set_tooltip(_('Reload'))