* [gentoo-commits] gentoo-x86 commit in app-i18n/uim/files: uim-1.6.1-libnotify-0.7.patch
@ 2011-02-05 7:37 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-02-05 7:37 UTC (permalink / raw
To: gentoo-commits
ssuominen 11/02/05 07:37:11
Added: uim-1.6.1-libnotify-0.7.patch
Log:
Fix building with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Revision Changes Path
1.1 app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch?rev=1.1&content-type=text/plain
Index: uim-1.6.1-libnotify-0.7.patch
===================================================================
--- 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");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-05 7:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-05 7:37 [gentoo-commits] gentoo-x86 commit in app-i18n/uim/files: uim-1.6.1-libnotify-0.7.patch Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox