hide / unhide on a single click on systray icon
This commit is contained in:
parent
f84c11956e
commit
1fde50b12f
|
@ -2089,7 +2089,7 @@ class systray:
|
||||||
menu.reposition()
|
menu.reposition()
|
||||||
|
|
||||||
def on_clicked(self, widget, event):
|
def on_clicked(self, widget, event):
|
||||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
|
||||||
if len(self.jids) == 0:
|
if len(self.jids) == 0:
|
||||||
win = self.plugin.roster.xml.get_widget('Gajim')
|
win = self.plugin.roster.xml.get_widget('Gajim')
|
||||||
if self.iconified:
|
if self.iconified:
|
||||||
|
|
Loading…
Reference in New Issue