diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 13:49:01 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 13:49:01 +0000 |
commit | 65365fc8ab5a7a5ae7ba106976715d5f5190106b (patch) | |
tree | d21f616966f59b5303a4b8e1185713a8d436ecb4 /gnome-extra/zenity/files | |
parent | Version bump to 9.6.3. (diff) | |
download | historical-65365fc8ab5a7a5ae7ba106976715d5f5190106b.tar.gz historical-65365fc8ab5a7a5ae7ba106976715d5f5190106b.tar.bz2 historical-65365fc8ab5a7a5ae7ba106976715d5f5190106b.zip |
Fix building with x11-libs/libnotify >= 0.7.
Package-Manager: portage-2.2.0_alpha19/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra/zenity/files')
-rw-r--r-- | gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch b/gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch new file mode 100644 index 000000000000..4d5bf7447b58 --- /dev/null +++ b/gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch @@ -0,0 +1,27 @@ +--- src/notification.c ++++ src/notification.c +@@ -30,6 +30,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #include "zenity.h" +@@ -184,10 +187,14 @@ + icon = freeme = g_filename_to_uri (icon_file, NULL, NULL); + } + ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ /* notify_notification_new_with_status_icon was removed */ ++#else + notif = notify_notification_new_with_status_icon ( + message[0] /* title */, + message[1] /* summary */, + icon, status_icon); ++#endif + + g_strfreev (message); + g_free (freeme); |