--- src/fe-gtk/tray.c +++ src/fe-gtk/tray.c @@ -16,6 +16,9 @@ #include #ifndef _WIN32 # include +#ifndef NOTIFY_CHECK_VERSION +#define NOTIFY_CHECK_VERSION(x,y,z) 0 +#endif #endif typedef enum /* current icon status */ @@ -134,8 +137,13 @@ return; stext = strip_color(text, -1, STRIP_ALL); - n = notify_notification_new(title, stext, NULL, NULL); + n = notify_notification_new(title, stext, NULL +#if NOTIFY_CHECK_VERSION (0, 7, 0) + ); +#else + , NULL); notify_notification_attach_to_status_icon(n, sticon); +#endif notify_notification_set_timeout(n, 20000); notify_notification_show(n, NULL);