--- src/libawn-extras/notify.c +++ src/libawn-extras/notify.c @@ -43,7 +43,15 @@ expire_timeout=timeout; } notify_init("notify-send"); +#ifdef NOTIFY_CHECK_VERSION +#if NOTIFY_CHECK_VERSION (0, 7, 0) + notify = notify_notification_new(summary, body, icon_str); +#else notify = notify_notification_new(summary, body, icon_str, NULL); +#endif +#else + notify = notify_notification_new(summary, body, icon_str, NULL); +#endif if (notify) { notify_notification_set_category(notify, type); --- src/notification-daemon/src/daemon/daemon.c +++ src/notification-daemon/src/daemon/daemon.c @@ -1252,7 +1252,15 @@ if (fork() == 0) { notify_init("notify-send"); +#ifdef NOTIFY_CHECK_VERSION +#if NOTIFY_CHECK_VERSION (0, 7, 0) + notify = notify_notification_new(summary, body, icon_str); +#else notify = notify_notification_new(summary, body, icon_str, NULL); +#endif +#else + notify = notify_notification_new(summary, body, icon_str, NULL); +#endif notify_notification_set_category(notify, type); notify_notification_set_urgency(notify, urgency); notify_notification_set_timeout(notify, expire_timeout);