always create self.tip even if show_icon is never called

This commit is contained in:
Yann Leboulanger 2005-03-27 08:38:26 +00:00
parent 5216a4bb6b
commit 23b8c1faa9
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,6 @@ class systray:
self.t = trayicon.TrayIcon('Gajim')
eb = gtk.EventBox()
eb.connect('button-press-event', self.on_clicked)
self.tip = gtk.Tooltips()
self.tip.set_tip(self.t, 'Gajim')
self.img_tray = gtk.Image()
eb.add(self.img_tray)
@ -265,6 +264,7 @@ class systray:
self.plugin = plugin
self.jids = []
self.t = None
self.tip = gtk.Tooltips()
self.img_tray = gtk.Image()
self.status = 'offline'
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'systray_context_menu', APP)