Skip to content
Snippets Groups Projects
Commit 5f4a2b9c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

context menu has icons now (with previous patch) in roster window, thx Dennis

parent 8e985d06
No related branches found
No related tags found
No related merge requests found
......@@ -747,10 +747,9 @@ def mk_menu_agent(self, event, iter):
user = self.contacts[account][jid][0]
menu = gtk.Menu()
state_images = self.get_appropriate_state_images(jid)
item = gtk.MenuItem()
icon = state_images['online']
icon = gtk.Image()
icon.set_from_stock(gtk.STOCK_YES, gtk.ICON_SIZE_BUTTON)
label = gtk.Label(_('_Log on'))
label.set_use_underline(True)
hbox = gtk.HBox(False, 3)
......@@ -764,7 +763,8 @@ def mk_menu_agent(self, event, iter):
item.connect('activate', self.on_agent_logging, jid, None, account)
item = gtk.MenuItem()
icon = state_images['offline']
icon = gtk.Image()
icon.set_from_stock(gtk.STOCK_NO, gtk.ICON_SIZE_BUTTON)
label = gtk.Label(_('Log _off'))
label.set_use_underline(True)
hbox = gtk.HBox(False, 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment