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

This commit is contained in:
Yann Leboulanger 2005-06-20 20:17:39 +00:00
parent 8e985d068a
commit 5f4a2b9cad
1 changed files with 4 additions and 4 deletions

View File

@ -747,10 +747,9 @@ class RosterWindow:
user = self.contacts[account][jid][0] user = self.contacts[account][jid][0]
menu = gtk.Menu() menu = gtk.Menu()
state_images = self.get_appropriate_state_images(jid)
item = gtk.MenuItem() 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 = gtk.Label(_('_Log on'))
label.set_use_underline(True) label.set_use_underline(True)
hbox = gtk.HBox(False, 3) hbox = gtk.HBox(False, 3)
@ -764,7 +763,8 @@ class RosterWindow:
item.connect('activate', self.on_agent_logging, jid, None, account) item.connect('activate', self.on_agent_logging, jid, None, account)
item = gtk.MenuItem() 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 = gtk.Label(_('Log _off'))
label.set_use_underline(True) label.set_use_underline(True)
hbox = gtk.HBox(False, 3) hbox = gtk.HBox(False, 3)