Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-01 18:23:50 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-01 18:23:50 +0400
commit32eaa3219fec3c3ec6e9ceb13fa501daa6c9c5a7 (patch)
treedf381f00d2dba274ee101ff8fd752a1a48820d4d /src
parent4eebf0e0361ec873098ccc3a72752109553fd6cb (diff)
left click on systray under windows show pending events if there are. fixes #4167
Diffstat (limited to 'src')
-rw-r--r--src/statusicon.py7
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'''