Author: roidelapluie Date: 2007-06-04 18:36:40 +0200 (Mon, 04 Jun 2007) New Revision: 8222
Modified: trunk/src/roster_window.py Log: ?\239?\187?\191Add ?\194?\171History?\194?\187 to roster groupchat context menu.
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2007-06-04 12:22:51 UTC (rev 8221) +++ trunk/src/roster_window.py 2007-06-04 16:36:40 UTC (rev 8222) @@ -2413,7 +2413,7 @@ 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,8 +2425,14 @@ 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) menu.attach_to_widget(self.tree, None)