call left_click handler of statusicon in main loop with idle_add. fixes #3567
This commit is contained in:
parent
a332543d68
commit
ca23666dcf
|
@ -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'''
|
||||||
|
|
Loading…
Reference in New Issue