blob: dd22e13aebc22ee766a540a2b3f7b5547783377c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- 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);
|