Skip to content
Snippets Groups Projects
Commit c1f211b2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

allow ad hoc commands on transports too

parent fa6ae3b4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment