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