allow ad hoc commands on transports too

This commit is contained in:
Yann Leboulanger 2006-08-01 12:56:16 +00:00
parent fa6ae3b4be
commit c1f211b2ca
1 changed files with 9 additions and 0 deletions

View File

@ -1534,6 +1534,15 @@ class RosterWindow:
item.connect('activate', self.on_edit_agent, contact, account)
if not is_connected:
item.set_sensitive(False)
item = gtk.ImageMenuItem(_('Execute Command...'))
icon = gtk.image_new_from_stock(gtk.STOCK_EXECUTE, gtk.ICON_SIZE_MENU)
item.set_image(icon)
menu.append(item)
item.connect('activate', self.on_execute_command, contact, account,
contact.resource)
if not is_connected:
item.set_sensitive(False)
item = gtk.ImageMenuItem(_('_Rename'))
# add a special img for rename menuitem