aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-07 19:52:16 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-07 19:52:16 +0200
commitfd700992890bb582bff400f0afc69e811ebb49e7 (patch)
treef03155cea3a1027547200882fd5f0116921fdf3b /mpd-notification.c
parent02e25d8d8404ae6303b151b64e83d47e41cb13dc (diff)
downloadmpd-notification-fd700992890bb582bff400f0afc69e811ebb49e7.tar.gz
mpd-notification-fd700992890bb582bff400f0afc69e811ebb49e7.tar.zst
fix compilation with libnotify < 0.7.0
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 60b62d6..416c019 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -56,7 +56,12 @@ int main(int argc, char ** argv) {
exit(EXIT_FAILURE);
}
- notification = notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND);
+ notification =
+#if NOTIFY_CHECK_VERSION(0, 7, 0)
+ notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND);
+#else
+ notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND, NULL);
+#endif
notify_notification_set_category(notification, PROGNAME);
notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);