41ed98fbe98f2ad786b2224045079e409688653f
[gentoo.git] /
1 --- src/libawn-extras/notify.c
2 +++ src/libawn-extras/notify.c
3 @@ -43,7 +43,15 @@
4                 expire_timeout=timeout;
5         }                       
6      notify_init("notify-send");
7 +#ifdef NOTIFY_CHECK_VERSION
8 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
9 +       notify = notify_notification_new(summary, body, icon_str);
10 +#else
11         notify = notify_notification_new(summary, body, icon_str, NULL);
12 +#endif
13 +#else
14 +       notify = notify_notification_new(summary, body, icon_str, NULL);
15 +#endif
16         if (notify)
17         {
18                 notify_notification_set_category(notify, type);
19 --- src/notification-daemon/src/daemon/daemon.c
20 +++ src/notification-daemon/src/daemon/daemon.c
21 @@ -1252,7 +1252,15 @@
22    if (fork() == 0)
23    {
24      notify_init("notify-send");
25 +#ifdef NOTIFY_CHECK_VERSION
26 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
27 +    notify = notify_notification_new(summary, body, icon_str);
28 +#else
29      notify = notify_notification_new(summary, body, icon_str, NULL);
30 +#endif
31 +#else
32 +    notify = notify_notification_new(summary, body, icon_str, NULL);
33 +#endif
34      notify_notification_set_category(notify, type);
35      notify_notification_set_urgency(notify, urgency);
36      notify_notification_set_timeout(notify, expire_timeout);