// Purpose: wxNotificationMessage for wxGTK using libnotify.
// Author: Vadim Zeitlin
// Created: 2012-07-25
-// RCS-ID: $Id$
// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_LIBNOTIFY
+#include "wx/notifmsg.h"
+
#ifndef WX_PRECOMP
+ #include "wx/app.h"
#endif // WX_PRECOMP
-#include "wx/notifmsg.h"
-
#include <libnotify/notify.h>
#include "wx/module.h"
GetTitle().utf8_str(),
GetMessage().utf8_str(),
icon
+#if !wxUSE_LIBNOTIFY_0_7
+ // There used to be an "associated window"
+ // parameter in this function but it has
+ // disappeared by 0.7, so use it for previous
+ // versions only.
+ , 0
+#endif // libnotify < 0.7
);
if ( !m_notification )
{