1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
|