[Xfce4-commits] <xfce4-power-manager:master> Use NOTIFY_CHECK_VERSION.
Jannis Pohlmann
jannis at xfce.org
Tue Feb 15 21:37:38 CET 2011
On Tue, 15 Feb 2011 20:32:02 +0000 (UTC)
Ali Abdallah <noreply at xfce.org> wrote:
> Updating branch refs/heads/master
> to 5a4acb6f69a17be1219fc89a9c4a3e4b141d3b51 (commit)
> from d66cf04142c818689d83cdd0a315e3d3be657d9c (commit)
(snip)
> n = notify_notification_new (title, message, NULL
> -#ifdef HAVE_LIBNOTIFY_07
> +#if NOTIFY_CHECK_VERSION (0, 7, 0)
> );
> #else
NOTIFY_CHECK_VERSION is not available in all versions of libnotify
(yes, it is a bit of a mess), so I think you need something like this
in your code (check thunar/thunar-notify.c):
#ifdef NOTIFY_CHECK_VERSION
#if NOTIFY_CHECK_VERSION (0, 7, 0)
notification = notify_notification_new (summary, message, icon_name);
#else
notification = notify_notification_new (summary, message, icon_name,
NULL);
#endif
#else
notification = notify_notification_new (summary, message, icon_name,
NULL);
#endif
- Jannis
More information about the Xfce4-dev
mailing list