From ca23666dcf07478d615fdf1d4cb81bb54e73abe8 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 26 Nov 2007 20:59:29 +0000
Subject: [PATCH] call left_click handler of statusicon in main loop with
 idle_add. fixes #3567

---
 src/statusicon.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/statusicon.py b/src/statusicon.py
index 4a49f86698..2b26fd9990 100644
--- a/src/statusicon.py
+++ b/src/statusicon.py
@@ -22,6 +22,7 @@
 import sys
 import gtk
 import systray
+import gobject
 
 from common import gajim
 from common import helpers
@@ -59,7 +60,7 @@ class StatusIcon(systray.Systray):
 		self.unsubscribe_events()
 
 	def on_status_icon_left_clicked(self, widget):
-		self.on_left_click()
+		gobject.idle_add(self.on_left_click)
 
 	def set_img(self):
 		'''apart from image, we also update tooltip text here'''
-- 
GitLab