left click on systray under windows show pending events if there are. fixes #4167

This commit is contained in:
Yann Leboulanger 2008-08-01 14:23:50 +00:00
parent 4eebf0e036
commit 32eaa3219f
1 changed files with 5 additions and 2 deletions

View File

@ -61,8 +61,11 @@ class StatusIcon(systray.Systray):
self.status_icon.set_visible(False)
self.unsubscribe_events()
def on_status_icon_left_clicked(self, widget):
self.on_left_click()
def on_status_icon_left_clicked(self, widget):
if len(gajim.events.get_systray_events()) == 0:
self.on_left_click()
else:
self.on_middle_click()
def set_img(self):
'''apart from image, we also update tooltip text here'''