X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.c;h=716dcfcb0100443001598aa9e25208c3866bb632;hb=f51bc6299cb7a2439b21f3ba43185f56e2311092;hp=e9e4b9df81006196ece9ecdf728701ea2bfea9a2;hpb=0f1c848998effc47ca5cbacf5c45f9f618bacd6b;p=psensor.git diff --git a/src/ui_notify.c b/src/ui_notify.c index e9e4b9d..716dcfc 100644 --- a/src/ui_notify.c +++ b/src/ui_notify.c @@ -60,13 +60,10 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) if (notify_is_initted() == TRUE) { name = strdup(sensor->name); -#ifdef NOTIFY_VERSION_MAJOR +#if defined(NOTIFY_CHECK_VERSION) && NOTIFY_CHECK_VERSION(0, 7, 0) /* * since libnotify 0.7 notify_notification_new has * only 3 parameters. - * - * libnotify < 0.7 does not define - * NOTIFY_VERSION_MAJOR */ notif = notify_notification_new(_("Temperature alert"), name,