diff options
author | 2024-05-04 12:20:58 +0400 | |
---|---|---|
committer | 2024-05-04 12:20:58 +0400 | |
commit | aaed1d6ef2e9f1ae7b95665a2378b53f32c13e23 (patch) | |
tree | 1052de23de4ba5d94ceb08399d673f82c5796f90 /x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch | |
parent | sys-kernel/ugrd: Add 1.2.2 (diff) | |
download | guru-aaed1d6ef2e9f1ae7b95665a2378b53f32c13e23.tar.gz guru-aaed1d6ef2e9f1ae7b95665a2378b53f32c13e23.tar.bz2 guru-aaed1d6ef2e9f1ae7b95665a2378b53f32c13e23.zip |
x11-misc/xneur: new package, adapted from https://xneur.ru/downloads
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch')
-rw-r--r-- | x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch b/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch new file mode 100644 index 000000000..080dcc680 --- /dev/null +++ b/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch @@ -0,0 +1,28 @@ +diff -ru xneur-0.12.0-orig/lib/notify/popup.c xneur-0.12.0/lib/notify/popup.c +--- xneur-0.12.0-orig/lib/notify/popup.c 2011-01-27 05:25:42.000000000 -0500 ++++ xneur-0.12.0/lib/notify/popup.c 2011-03-12 02:21:20.411001315 -0500 +@@ -27,6 +27,10 @@ + + #include <libnotify/notify.h> + ++#ifndef NOTIFY_CHECK_VERSION /* macro did not exist before libnotify-0.5.2 */ ++# define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + #include <pthread.h> + #include <stdio.h> + #include <string.h> +@@ -73,8 +77,12 @@ + popup_body->header = popup_body->content; + popup_body->content = NULL; + } +- ++ ++#if NOTIFY_CHECK_VERSION(0,7,0) ++ NotifyNotification *notify = notify_notification_new(popup_body->header, popup_body->content, icon); ++#else + NotifyNotification *notify = notify_notification_new(popup_body->header, popup_body->content, icon, NULL); ++#endif + + notify_notification_set_category(notify, type); + notify_notification_set_urgency(notify, urgency); |