summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-02-05 07:37:11 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-02-05 07:37:11 +0000
commit973eb03621900df95854d8861e2430e501a72d8e (patch)
tree8a92a812e3e09898e2695380ff0870e052a0e8bd /app-i18n/uim/files
parentAutomated update of use.local.desc (diff)
downloadhistorical-973eb03621900df95854d8861e2430e501a72d8e.tar.gz
historical-973eb03621900df95854d8861e2430e501a72d8e.tar.bz2
historical-973eb03621900df95854d8861e2430e501a72d8e.zip
Fix building with x11-libs/libnotify >= 0.7.
Package-Manager: portage-2.2.0_alpha19/cvs/Linux x86_64
Diffstat (limited to 'app-i18n/uim/files')
-rw-r--r--app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch b/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch
new file mode 100644
index 000000000000..4899794c52da
--- /dev/null
+++ b/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch
@@ -0,0 +1,25 @@
+--- notify/uim-libnotify.c
++++ notify/uim-libnotify.c
+@@ -44,6 +44,10 @@
+ #include "uim-notify.h"
+ #include "gettext.h"
+
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
++
+ #define UIM_ICON UIM_PIXMAPSDIR "/uim-icon.png"
+ #define UGETTEXT(str) (dgettext(GETTEXT_PACKAGE, (str)))
+
+@@ -73,7 +77,11 @@
+ return UIM_FALSE;
+ }
+
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ notification = notify_notification_new("uim", gmsg, UIM_ICON);
++#else
+ notification = notify_notification_new("uim", gmsg, UIM_ICON, NULL);
++#endif
+
+ if (!notification) {
+ fprintf(stderr, "notify_notification_new: can not create notification object\n");