# HG changeset patch # User Guido Berhoerster # Date 1318345669 -7200 # Node ID 2da5037fdfad9fb3b9a4f685e62f5ddd7a9753d7 # Parent fe1a21ab4f690d667d8ecce6c1763813091840c6 add compatibility with libnotify version < 0.7 diff -r fe1a21ab4f69 -r 2da5037fdfad notify.c --- a/notify.c Tue Oct 11 17:07:49 2011 +0200 +++ b/notify.c Tue Oct 11 17:07:49 2011 +0200 @@ -29,7 +29,14 @@ void send_notify(struct UpdatesInfo *info) { NotifyNotification *ntfy; - ntfy = notify_notification_new(_("Software Update(s)"), notify_text(info), info->critical > 0 ? "software-update-urgent" : "software-update-available"); + ntfy = notify_notification_new( + _("Software Update(s)"), + _(notify_text(info)), + info->critical > 0 ? "software-update-urgent" : "software-update-available" +#if (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) + , NULL +#endif + ); notify_notification_set_timeout(ntfy, 3000); notify_notification_set_urgency(ntfy, info->critical > 0 ? NOTIFY_URGENCY_CRITICAL : NOTIFY_URGENCY_NORMAL); notify_notification_show(ntfy, NULL);