From 1fde50b12f2926ae46b46f0ccbeda175dc4d5fff Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 16 Jan 2005 17:21:45 +0000 Subject: [PATCH] hide / unhide on a single click on systray icon --- plugins/gtkgui/gtkgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 4eb339503..456a88008 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -2089,7 +2089,7 @@ class systray: menu.reposition() 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: win = self.plugin.roster.xml.get_widget('Gajim') if self.iconified: