diff options
Diffstat (limited to 'net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch')
-rw-r--r-- | net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch b/net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch new file mode 100644 index 000000000000..ba1bc72e48bd --- /dev/null +++ b/net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch @@ -0,0 +1,27 @@ +--- src/fe-gtk/tray.c ++++ src/fe-gtk/tray.c +@@ -16,6 +16,9 @@ + #include <gtk/gtk.h> + #ifndef _WIN32 + # include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + typedef enum /* current icon status */ +@@ -134,8 +137,13 @@ + return; + + stext = strip_color(text, -1, STRIP_ALL); +- n = notify_notification_new(title, stext, NULL, NULL); ++ n = notify_notification_new(title, stext, NULL ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + notify_notification_attach_to_status_icon(n, sticon); ++#endif + notify_notification_set_timeout(n, 20000); + notify_notification_show(n, NULL); + |