emesene/emesene — Issue #1018: Added "Show/Hide Avatars" button tooltips
Author: zipatei
Created: 2012-02-13 20:14:57+00:00
State: open

Is it possible to add the tooltip to the icon instead of the label?

https://github.com/emesene/emesene/pull/768

Thus it was possible to specify.

def on_toggle_avatar(self):
'''hide or show the avatar bar'''
if self.avatar_box_is_hidden:
self.toolbar.toggle_avatar.set_stock_id(gtk.STOCK_GO_FORWARD)
self.toolbar.toggle_avatar.set_tooltip_text(_('Hide avatar'))
self.info.show()
else:
self.toolbar.toggle_avatar.set_stock_id(gtk.STOCK_GO_BACK)
self.toolbar.toggle_avatar.set_tooltip_text(_('Show avatar'))
self.info.hide()
self.avatar_box_is_hidden = not self.avatar_box_is_hidden