You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/notification-daemon/files/notification-daemon-0.5.0-l...

29 lines
948 B

--- 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;