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""" """When we want to close the window"""
if self.plugin.systray_visible: if self.plugin.systray_visible:
self.window.iconify() self.window.iconify()
win.skip_taskbar_hint = True
else: else:
self.quit_gtkgui_plugin() self.quit_gtkgui_plugin()
return 1 return 1

View file

@ -216,9 +216,9 @@ class systray:
def show_icon(self): def show_icon(self):
if not self.t: if not self.t:
self.t = trayicon.TrayIcon("Gajim") self.t = trayicon.TrayIcon('Gajim')
eb = gtk.EventBox() 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 = gtk.Tooltips()
self.tip.set_tip(self.t, 'Gajim') self.tip.set_tip(self.t, 'Gajim')
self.img_tray = gtk.Image() self.img_tray = gtk.Image()