summaryrefslogtreecommitdiff
path: root/extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch')
-rw-r--r--extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch b/extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch
new file mode 100644
index 000000000..1a6b478ac
--- /dev/null
+++ b/extra/seahorse/seahorse-2.32.0-libnotify-0.7.patch
@@ -0,0 +1,26 @@
+--- libseahorse/seahorse-notification.c
++++ libseahorse/seahorse-notification.c
+@@ -37,6 +37,9 @@
+
+ #ifdef HAVE_LIBNOTIFY
+ #include <libnotify/notify.h>
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
+ #endif
+
+ /* -----------------------------------------------------------------------------
+@@ -231,7 +234,12 @@
+ heading = format_key_text (snotif->heading);
+ message = format_key_text (snotif->message);
+
+- notif = notify_notification_new (heading, message, snotif->icon, attachto);
++ notif = notify_notification_new (heading, message, snotif->icon
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ );
++#else
++ , attachto);
++#endif
+
+ g_free (heading);
+ g_free (message);