From 4240fd7ecc9a0e597f0741ae0c9832ccb8e97059 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 7 Jul 2005 22:22:13 +0000 Subject: [PATCH] fix a traceback --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 1318f1a69..7e8da30f1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -751,7 +751,8 @@ class RosterWindow: menu = gtk.Menu() item = gtk.ImageMenuItem(_('_Log on')) - icon = gtk.image_new_from_stock(icon) + icon = gtk.image_new_from_stock(gtk.STOCK_YES, gtk.ICON_SIZE_MENU) + item.set_image(icon) menu.append(item) show = self.contacts[account][jid][0].show if show != 'offline' and show != 'error':