fix menuitem

This commit is contained in:
Denis Fomin 2013-01-12 22:15:33 +04:00
parent 370aecd28c
commit 7ab0c826fc
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@ def build_invite_submenu(invite_menuitem, list_, ignore_rooms=[]):
return
invite_to_submenu = Gtk.Menu()
invite_menuitem.set_submenu(invite_to_submenu)
invite_to_new_room_menuitem = Gtk.ImageMenuItem(_('_New Group Chat'))
invite_to_new_room_menuitem = Gtk.ImageMenuItem.new_with_mnemonic(_(
'_New Group Chat'))
icon = Gtk.Image.new_from_stock(Gtk.STOCK_NEW, Gtk.IconSize.MENU)
invite_to_new_room_menuitem.set_image(icon)
if len(contact_list) > 1: # several resources