summaryrefslogtreecommitdiff
path: root/community/awn-extras-applets/awn-extras-libnotify0.7.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/awn-extras-applets/awn-extras-libnotify0.7.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/awn-extras-applets/awn-extras-libnotify0.7.patch')
-rw-r--r--community/awn-extras-applets/awn-extras-libnotify0.7.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/awn-extras-applets/awn-extras-libnotify0.7.patch b/community/awn-extras-applets/awn-extras-libnotify0.7.patch
new file mode 100644
index 000000000..63b282b70
--- /dev/null
+++ b/community/awn-extras-applets/awn-extras-libnotify0.7.patch
@@ -0,0 +1,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);