--- src/gs-lock-plug.c +++ src/gs-lock-plug.c @@ -47,6 +47,10 @@ #include #endif +#ifndef NOTIFY_CHECK_VERSION +#define NOTIFY_CHECK_VERSION(x,y,z) 0 +#endif + #include "gs-lock-plug.h" #include "gs-debug.h" @@ -1090,7 +1094,11 @@ strftime (summary, 128, "%X", tmp); notify_init ("gnome-screensaver-dialog"); +#if NOTIFY_CHECK_VERSION (0, 7, 0) + note = notify_notification_new (summary, escaped_text, NULL); +#else note = notify_notification_new (summary, escaped_text, NULL, NULL); +#endif notify_notification_set_timeout (note, NOTIFY_EXPIRES_NEVER); notify_notification_show (note, NULL); g_object_unref (note);