This commit is contained in:
Nikos Kouremenos 2005-06-06 23:42:31 +00:00
parent 9e58a5b68c
commit ea4eca20b3
1 changed files with 3 additions and 2 deletions

View File

@ -221,10 +221,11 @@ class Systray:
acc['chats'][jid].set_active_tab(jid) acc['chats'][jid].set_active_tab(jid)
acc['chats'][jid].window.present() acc['chats'][jid].window.present()
if event.button == 2: # middle click if event.button == 2: # middle click
win = self.plugin.roster.window
if win.flags() & gtk.VISIBLE: if win.flags() & gtk.VISIBLE:
self.plugin.roster.window.hide() win.hide()
else: else:
self.plugin.roster.window.present() win.present()
if event.button == 3: # right click if event.button == 3: # right click
self.make_menu(event) self.make_menu(event)