This commit is contained in:
Nikos Kouremenos 2005-03-15 14:21:09 +00:00
parent a54df94bf7
commit b102752cab
2 changed files with 3 additions and 2 deletions

View File

@ -923,6 +923,7 @@ class roster_window:
"""When we want to close the window"""
if self.plugin.systray_visible:
self.window.iconify()
win.skip_taskbar_hint = True
else:
self.quit_gtkgui_plugin()
return 1

View File

@ -216,9 +216,9 @@ class systray:
def show_icon(self):
if not self.t:
self.t = trayicon.TrayIcon("Gajim")
self.t = trayicon.TrayIcon('Gajim')
eb = gtk.EventBox()
eb.connect("button-press-event", self.on_clicked)
eb.connect('button-press-event', self.on_clicked)
self.tip = gtk.Tooltips()
self.tip.set_tip(self.t, 'Gajim')
self.img_tray = gtk.Image()