You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/uim/files/uim-1.6.1-libnotify-0.7.patch

26 lines
661 B

--- 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");