From 4dea208279377ab3dc1eef971275b6988f954fd3 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 4 Jun 2007 16:36:40 +0000 Subject: [PATCH] =?UTF-8?q?=EF=BB=BFAdd=20=C2=ABHistory=C2=BB=20to=20roste?= =?UTF-8?q?r=20groupchat=20context=20menu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/roster_window.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 04a218fdd..0598abb70 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2413,7 +2413,7 @@ class RosterWindow: path = model.get_path(iter) jid = model[iter][C_JID].decode('utf-8') account = model[iter][C_ACCOUNT].decode('utf-8') - + contact = gajim.contacts.get_contact_with_highest_priority(account, jid) menu = gtk.Menu() if gajim.interface.minimized_controls.has_key(account) and \ @@ -2425,7 +2425,13 @@ class RosterWindow: jid, account) menu.append(maximize_menuitem) - + history_menuitem = gtk.ImageMenuItem(_('_History')) + history_icon = gtk.image_new_from_stock(gtk.STOCK_JUSTIFY_FILL, \ + gtk.ICON_SIZE_MENU) + history_menuitem.set_image(history_icon) + history_menuitem .connect('activate', self.on_history, \ + contact, account) + menu.append(history_menuitem) event_button = gtkgui_helpers.get_possible_button_event(event)