aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/new-mail-notify/new-mail-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/new-mail-notify/new-mail-notify.c')
-rw-r--r--plugins/new-mail-notify/new-mail-notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/new-mail-notify/new-mail-notify.c b/plugins/new-mail-notify/new-mail-notify.c
index e6147a1564..230a7fb8b1 100644
--- a/plugins/new-mail-notify/new-mail-notify.c
+++ b/plugins/new-mail-notify/new-mail-notify.c
@@ -113,7 +113,11 @@ send_dbus_message (const char *message_name, const char *data)
/* Appends the data as an argument to the message */
dbus_message_append_args (message,
+#if DBUS_VERSION >= 310
+ DBUS_TYPE_STRING, &data,
+#else
DBUS_TYPE_STRING, data,
+#endif
DBUS_TYPE_INVALID);
/* Sends the message */