320
320
'''Notifies a user of an event. It first tries to a valid implementation of
321
321
the Desktop Notification Specification. If that fails, then we fall back to
322
322
the older style PopupNotificationWindow method.'''
327
os.path.join(gajim.DATA_DIR, 'pixmaps', 'events',
333
osx.growler.notify(event_type, jid, account, msg_type, path_to_image,
323
338
if gajim.config.get('use_notif_daemon') and dbus_support.supported:
325
340
DesktopNotification(event_type, jid, account, msg_type,
327
342
return # sucessfully did D-Bus Notification procedure!
328
343
except dbus.DBusException, e:
329
344
# Connection to D-Bus failed