diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-01-14 20:43:22 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuel.por.aca@gmail.com> | 2014-01-16 16:48:06 (GMT) |
commit | b77658247204d1ef31da4b3bc20c58cc3ad5c2a3 (patch) | |
tree | 016ec1f9b09c77fa7f5873b374cbb4377b21204c /viewtoolbar.py | |
parent | 9dd9201453c90f3cd93b2f9dfcf804cda5250a76 (diff) |
Make consistent the tooltip of the show/hide tray button
Fixes #4712.
Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Diffstat (limited to 'viewtoolbar.py')
-rw-r--r-- | viewtoolbar.py | 7 |
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')) |