blob: 63765ee79e69a6145c2768984264cb3565ce2b33 (
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
27
28
|
--- src/capplet/notification-properties.c
+++ src/capplet/notification-properties.c
@@ -27,6 +27,10 @@
#include <string.h>
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
#include "stack.h"
#define GCONF_KEY_DAEMON "/apps/notification-daemon"
@@ -402,8 +406,12 @@
dialog->preview = notify_notification_new (_("Notification Test"),
_("Just a test"),
- "gnome-util",
- NULL);
+ "gnome-util"
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ );
+#else
+ , NULL);
+#endif
if (!notify_notification_show (dialog->preview, &error)) {
char *message;
|