* [gentoo-commits] gentoo-x86 commit in net-misc/twitux/files: twitux-0.69-libnotify-0.7.patch
@ 2011-02-09 17:21 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-02-09 17:21 UTC (permalink / raw
To: gentoo-commits
ssuominen 11/02/09 17:21:11
Added: twitux-0.69-libnotify-0.7.patch
Log:
Fix building with x11-libs/libnotify >= 0.7 wrt #354129 by Diego Elio Pettenò.
(Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
Revision Changes Path
1.1 net-misc/twitux/files/twitux-0.69-libnotify-0.7.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/twitux/files/twitux-0.69-libnotify-0.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/twitux/files/twitux-0.69-libnotify-0.7.patch?rev=1.1&content-type=text/plain
Index: twitux-0.69-libnotify-0.7.patch
===================================================================
--- src/twitux-app.c
+++ src/twitux-app.c
@@ -31,6 +31,10 @@
#include <glib/gi18n.h>
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
#include <libtwitux/twitux-debug.h>
#include <libtwitux/twitux-conf.h>
#include <libtwitux/twitux-paths.h>
@@ -1444,10 +1448,12 @@
NotifyNotification *notification;
GError *error = NULL;
- notification = notify_notification_new (PACKAGE_NAME,
- msg,
- "twitux",
- NULL);
+ notification = notify_notification_new (PACKAGE_NAME, msg, "twitux"
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ );
+#else
+ , NULL);
+#endif
notify_notification_set_timeout (notification, 8 * 1000);
notify_notification_show (notification, &error);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-09 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 17:21 [gentoo-commits] gentoo-x86 commit in net-misc/twitux/files: twitux-0.69-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