Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusicon.py')
-rw-r--r--src/statusicon.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/statusicon.py b/src/statusicon.py
index 7fa5f9322..619c96915 100644
--- a/src/statusicon.py
+++ b/src/statusicon.py
@@ -1,22 +1,25 @@
-## statusicon.py
+## src/statusicon.py
##
-## Copyright (C) 2006 Nikos Kouremenos <kourem@gmail.com>
-## Copyright (C) 2007 Lukas Petrovicky <lukas@petrovicky.net>
+## Copyright (C) 2006 Nikos Kouremenos <kourem AT gmail.com>
+## Copyright (C) 2006-2007 Jean-Marie Traissard <jim AT lapin.org>
+## Copyright (C) 2006-2008 Yann Leboulanger <asterix AT lagaule.org>
+## Copyright (C) 2007 Lukas Petrovicky <lukas AT petrovicky.net>
+## Julien Pivotto <roidelapluie AT gmail.com>
+## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
##
## This file is part of Gajim.
##
-## Gajim is free software; you can redistribute it and/or
-## modify it under the terms of the GNU General Public License
-## as published by the Free Software Foundation; either version 2
-## of the License, or (at your option) any later version.
+## Gajim is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published
+## by the Free Software Foundation; version 3 only.
##
## Gajim is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
##
import sys
@@ -61,10 +64,10 @@ class StatusIcon(systray.Systray):
self.status_icon.set_visible(False)
self.unsubscribe_events()
- def on_status_icon_left_clicked(self, widget):
+ def on_status_icon_left_clicked(self, widget):
if len(gajim.events.get_systray_events()) == 0:
- self.on_left_click()
- else:
+ self.on_left_click()
+ else:
self.on_middle_click()
def set_img(self):
@@ -94,4 +97,4 @@ class StatusIcon(systray.Systray):
#elif image.get_storage_type() == gtk.IMAGE_ANIMATION:
# self.img_tray.set_from_animation(image.get_animation())
-# vim: se ts=3: \ No newline at end of file
+# vim: se ts=3: