Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/viewtoolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'viewtoolbar.py')
-rw-r--r--viewtoolbar.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/viewtoolbar.py b/viewtoolbar.py
index 2008277..f65ae4f 100644
--- a/viewtoolbar.py
+++ b/viewtoolbar.py
@@ -110,7 +110,12 @@ class ViewToolbar(Gtk.Toolbar):
def __tray_toggled_cb(self, button):
if button.props.active:
self._activity.tray.show()
- self.traybutton.set_tooltip(_('Show Tray'))
else:
self._activity.tray.hide()
+ self.update_traybutton_tooltip()
+
+ def update_traybutton_tooltip(self):
+ if not self.traybutton.props.active:
+ self.traybutton.set_tooltip(_('Show Tray'))
+ else:
self.traybutton.set_tooltip(_('Hide Tray'))