Allow using versions of libnotify < 0.7 in wxGTK.
libnotify 0.4.5 included in Ubuntu Lucid (10.04) can be used for implementing wxNotificationMessage too, there is only a minor difference with 0.7 API. So while we stick check for 0.7 initially, accept lower versions too if 0.7 is not available. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -138,6 +138,13 @@ bool wxNotificationMessage::Show(int timeout)
|
||||
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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user