1 |
ssuominen 11/02/05 07:37:11 |
2 |
|
3 |
Added: uim-1.6.1-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch |
11 |
|
12 |
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 |
13 |
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 |
14 |
|
15 |
Index: uim-1.6.1-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- notify/uim-libnotify.c |
18 |
+++ notify/uim-libnotify.c |
19 |
@@ -44,6 +44,10 @@ |
20 |
#include "uim-notify.h" |
21 |
#include "gettext.h" |
22 |
|
23 |
+#ifndef NOTIFY_CHECK_VERSION |
24 |
+#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
25 |
+#endif |
26 |
+ |
27 |
#define UIM_ICON UIM_PIXMAPSDIR "/uim-icon.png" |
28 |
#define UGETTEXT(str) (dgettext(GETTEXT_PACKAGE, (str))) |
29 |
|
30 |
@@ -73,7 +77,11 @@ |
31 |
return UIM_FALSE; |
32 |
} |
33 |
|
34 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
35 |
+ notification = notify_notification_new("uim", gmsg, UIM_ICON); |
36 |
+#else |
37 |
notification = notify_notification_new("uim", gmsg, UIM_ICON, NULL); |
38 |
+#endif |
39 |
|
40 |
if (!notification) { |
41 |
fprintf(stderr, "notify_notification_new: can not create notification object\n"); |