summaryrefslogtreecommitdiff
blob: 060340707bf9c6845aad911ee97f05e7ed34ae38 (plain)
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
@@ -34,6 +34,9 @@
 
 #ifdef HAVE_LIBNOTIFY
 #include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
 #endif
 
 /* -----------------------------------------------------------------------------
@@ -213,7 +216,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);