'''0.3.1 is the only version of notification daemon that has no way to determine which version it is. If no method exists, it means they're using that one.'''
self.default_version='0.3.1'
self.default_version=[0,3,1]
self.account=account
self.jid=jid
self.msg_type=msg_type
...
...
@@ -452,7 +452,7 @@ class DesktopNotification:
version=self.version
timeout=gajim.config.get('notification_timeout')# in seconds
ntype=self.ntype
ifversion.startswith('0.2'):
ifversion[:2]==[0,2]:
try:
self.notif.Notify(
dbus.String(_('Gajim')),
...
...
@@ -470,9 +470,9 @@ class DesktopNotification:
reply_handler=self.attach_by_id,
error_handler=self.notify_another_way)
exceptAttributeError:
version='0.3.1'# we're actually dealing with the newer version
ifversion.startswith('0.3'):
ifversion>=(0,3,2):
version=[0,3,1]# we're actually dealing with the newer version