]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notifmsg.cpp
Disable wxUSE_ENH_METAFILE for wxGTK builds.
[wxWidgets.git] / src / gtk / notifmsg.cpp
index d50dee214084814ee66517d9172e5b3f908812dd..10d0d7a678202f6243c9a1f94fa1e3dec7e78bdb 100644 (file)
 
 #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"
@@ -138,6 +139,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 )
         {