diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2006-02-23 00:01:54 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2006-02-23 00:01:54 +0300 |
commit | 38f0a203555da3ef730f55082390c5547c2b3c15 (patch) | |
tree | 789e213af94ec964894720ad1207afc5f720ebe7 /src/notify.py | |
parent | d33805d64fe91b1953f9b0deab636ecc374e546d (diff) |
fix indentation
Diffstat (limited to 'src/notify.py')
-rw-r--r-- | src/notify.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/notify.py b/src/notify.py index d0b26cadc..cf469ab64 100644 --- a/src/notify.py +++ b/src/notify.py @@ -33,6 +33,7 @@ import sys import gajim import dialogs import gobject +import systray from common import gajim from common import exceptions @@ -144,9 +145,9 @@ class DesktopNotification: # No way to determine the version number, set it to the latest # since it doesn't properly support the version number try: - (name, version, version, spec_version) = self.notif.GetServerInformation() + (name, version, version, spec_version) = self.notif.GetServerInformation() except: - version = '0.3.1' + version = '0.3.1' if version.startswith('0.2'): try: self.id = self.notif.Notify(dbus.String(_('Gajim')), @@ -158,13 +159,15 @@ class DesktopNotification: version = '0.3.1' # we're actually dealing with the newer version if version.startswith('0.3'): if version >= ( 0, 3, 2): - self.id = self.notif.Notify(dbus.String(_('Gajim')), - dbus.UInt32(0), dbus.String(path_to_image), dbus.String(event_type), - dbus.String(text), ( dbus.String(ntype), dbus.String(event_type) ), {}, dbus.UInt32(timeout*1000)) + self.id = self.notif.Notify(dbus.String(_('Gajim')), + dbus.UInt32(0), dbus.String(path_to_image), + dbus.String(event_type), dbus.String(text), (dbus.String(ntype), + dbus.String(event_type)), {}, dbus.UInt32(timeout*1000)) else: - self.id = self.notif.Notify(dbus.String(_('Gajim')), - dbus.String(path_to_image), dbus.UInt32(0), dbus.String(event_type), - dbus.String(text), dbus.String(''), {}, dbus.UInt32(timeout*1000)) + self.id = self.notif.Notify(dbus.String(_('Gajim')), + dbus.String(path_to_image), dbus.UInt32(0), + dbus.String(event_type), dbus.String(text), dbus.String(''), + {}, dbus.UInt32(timeout*1000)) notification_response_manager.attach_to_interface() notification_response_manager.pending[self.id] = self |