Add information menuitem in transports context menu

This commit is contained in:
Julien Pivotto 2007-06-12 11:35:13 +00:00
parent ba5e4dbd3f
commit 741cc56a52
1 changed files with 7 additions and 0 deletions

View File

@ -2720,6 +2720,13 @@ class RosterWindow:
if gajim.account_is_disconnected(account): if gajim.account_is_disconnected(account):
item.set_sensitive(False) item.set_sensitive(False)
information_menuitem = gtk.ImageMenuItem(_('_Information'))
icon = gtk.image_new_from_stock(gtk.STOCK_INFO, gtk.ICON_SIZE_MENU)
information_menuitem.set_image(icon)
menu.append(information_menuitem)
information_menuitem.connect('activate', self.on_info, contact, account)
event_button = gtkgui_helpers.get_possible_button_event(event) event_button = gtkgui_helpers.get_possible_button_event(event)
menu.attach_to_widget(self.tree, None) menu.attach_to_widget(self.tree, None)