From: Jean-Philippe Orsini Date: Fri, 22 Apr 2011 21:48:11 +0000 (+0000) Subject: added comment about libnotify 0.7 support X-Git-Tag: v0.8.0.5~832 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=74b7240175ffc9834b2deb6ee514c13220fe765c added comment about libnotify 0.7 support --- diff --git a/src/ui_notify.c b/src/ui_notify.c index 8752a94..4344719 100644 --- a/src/ui_notify.c +++ b/src/ui_notify.c @@ -62,6 +62,13 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) name = strdup(sensor->name); #ifdef NOTIFY_VERSION_MAJOR + /* + 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, NULL);