[multani] when right/middle click on the old popup window, destroy it

This commit is contained in:
Yann Leboulanger 2005-11-26 14:39:27 +00:00
parent afe373c6f4
commit b48718a8d1
1 changed files with 3 additions and 0 deletions

View File

@ -903,6 +903,9 @@ class PopupNotificationWindow:
gtk.gdk.screen_height() - gajim.interface.roster.popups_notification_height)
def on_popup_notification_window_button_press_event(self, widget, event):
if event.button != 1:
self.window.destroy()
return
# use Contact class, new_chat expects it that way
# is it in the roster?
if gajim.contacts[self.account].has_key(self.jid):