From c1f211b2ca3558e503777f4220f7a9fa088fe1fb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 1 Aug 2006 12:56:16 +0000 Subject: [PATCH] allow ad hoc commands on transports too --- src/roster_window.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 841ca0b7e..7e4541c6e 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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