diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-08-01 18:23:50 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-08-01 18:23:50 +0400 |
commit | 32eaa3219fec3c3ec6e9ceb13fa501daa6c9c5a7 (patch) | |
tree | df381f00d2dba274ee101ff8fd752a1a48820d4d /src | |
parent | 4eebf0e0361ec873098ccc3a72752109553fd6cb (diff) |
left click on systray under windows show pending events if there are. fixes #4167
Diffstat (limited to 'src')
-rw-r--r-- | src/statusicon.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/statusicon.py b/src/statusicon.py index 34d910b6f..7fa5f9322 100644 --- a/src/statusicon.py +++ b/src/statusicon.py @@ -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''' |