summaryrefslogtreecommitdiff
path: root/community/awn-extras-applets/awn-extras-libnotify0.7.patch
blob: 63b282b70e61b7ae768fd3eb58ae94d5319e7bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -aur awn-extras-0.4.0/applets/maintained/notification-daemon/daemon.c awn-extras-0.4.0-new//applets/maintained/notification-daemon/daemon.c
--- awn-extras-0.4.0/applets/maintained/notification-daemon/daemon.c	2010-04-09 16:26:20.000000000 -0700
+++ awn-extras-0.4.0-new//applets/maintained/notification-daemon/daemon.c	2011-03-06 09:33:33.603336393 -0800
@@ -1487,7 +1487,15 @@
   if (fork() == 0)
   {
     notify_init("notify-send");
-    notify = notify_notification_new(summary, body, icon_str, NULL);
+    #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);