allow ad hoc commands on transports too
This commit is contained in:
parent
fa6ae3b4be
commit
c1f211b2ca
|
@ -1535,6 +1535,15 @@ class RosterWindow:
|
||||||
if not is_connected:
|
if not is_connected:
|
||||||
item.set_sensitive(False)
|
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'))
|
item = gtk.ImageMenuItem(_('_Rename'))
|
||||||
# add a special img for rename menuitem
|
# add a special img for rename menuitem
|
||||||
path_to_kbd_input_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
|
path_to_kbd_input_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
|
||||||
|
|
Loading…
Reference in New Issue