Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > dbaa9fe5df079d505598a75492893ab1 > files > 5

xchat-gnome-0.26.1-17.mga3.src.rpm

diff -uNr xchat-gnome-0.26.1/plugins/notify-osd/notify-osd.c xchat-gnome-0.26.1p/plugins/notify-osd/notify-osd.c
--- xchat-gnome-0.26.1/plugins/notify-osd/notify-osd.c	2008-09-07 16:18:27.000000000 +0300
+++ xchat-gnome-0.26.1p/plugins/notify-osd/notify-osd.c	2011-06-13 01:31:01.712851765 +0300
@@ -27,6 +27,10 @@
 #include "xchat-plugin.h"
 #include "xg-plugin.h"
 
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
 #define NOTIFY_OSD_NAME        _("On-screen display")
 #define NOTIFY_OSD_VERSION     "0.1"
 #define NOTIFY_OSD_DESCRIPTION _("Pops up notification of important messages when XChat-GNOME doesn't have the focus")
@@ -67,7 +71,12 @@
 	gchar *escaped;
 
 	escaped = g_markup_escape_text (message, strlen(message));
-	notify = notify_notification_new (summary, escaped, NULL, NULL);
+	notify = notify_notification_new (summary, escaped, NULL
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+	);
+#else
+	, NULL);
+#endif
 	notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
 	notify_notification_set_icon_from_pixbuf (notify, notify_icon);
 	if (!notify_notification_show (notify, &error)) {