diff options
Diffstat (limited to 'app-pda/syncevolution/files/syncevolution-1.1.1-libnotify-0.5.x.patch')
-rw-r--r-- | app-pda/syncevolution/files/syncevolution-1.1.1-libnotify-0.5.x.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-pda/syncevolution/files/syncevolution-1.1.1-libnotify-0.5.x.patch b/app-pda/syncevolution/files/syncevolution-1.1.1-libnotify-0.5.x.patch new file mode 100644 index 000000000000..ca24e48e583a --- /dev/null +++ b/app-pda/syncevolution/files/syncevolution-1.1.1-libnotify-0.5.x.patch @@ -0,0 +1,28 @@ +--- src/syncevo-dbus-server.cpp ++++ src/syncevo-dbus-server.cpp +@@ -64,6 +64,9 @@ + + #ifdef HAS_NOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + class DBusMessage; +@@ -6108,10 +6111,11 @@ + notify_notification_clear_actions(m_notification); + notify_notification_close(m_notification, NULL); + } +-#if !defined(NOTIFY_CHECK_VERSION) +- m_notification = notify_notification_new(summary, body, NULL, NULL); +-#else // NOTIFY_CHECK_VERSION(0,7,0) is redundant, because 0.7.0 introduced NOTIFY_CHECK_VERSION +- m_notification = notify_notification_new(summary, body, NULL); ++ m_notification = notify_notification_new(summary, body, NULL ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + #endif + //if actions are not supported, don't add actions + //An example is Ubuntu Notify OSD. It uses an alert box |