call left_click handler of statusicon in main loop with idle_add. fixes #3567

This commit is contained in:
Yann Leboulanger 2007-11-26 20:59:29 +00:00
parent a332543d68
commit ca23666dcf
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
import sys import sys
import gtk import gtk
import systray import systray
import gobject
from common import gajim from common import gajim
from common import helpers from common import helpers
@ -59,7 +60,7 @@ class StatusIcon(systray.Systray):
self.unsubscribe_events() self.unsubscribe_events()
def on_status_icon_left_clicked(self, widget): def on_status_icon_left_clicked(self, widget):
self.on_left_click() gobject.idle_add(self.on_left_click)
def set_img(self): def set_img(self):
'''apart from image, we also update tooltip text here''' '''apart from image, we also update tooltip text here'''