public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-applets/files: gnome-applets-2.32.1.1-libnotify-0.7.patch
@ 2011-02-08 19:04 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-02-08 19:04 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/02/08 19:04:14

  Added:                gnome-applets-2.32.1.1-libnotify-0.7.patch
  Log:
  Fix building with x11-libs/libnotify >= 0.7 wrt #354117 by Diego Elio Pettenò.
  
  (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  gnome-base/gnome-applets/files/gnome-applets-2.32.1.1-libnotify-0.7.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-applets/files/gnome-applets-2.32.1.1-libnotify-0.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-applets/files/gnome-applets-2.32.1.1-libnotify-0.7.patch?rev=1.1&content-type=text/plain

Index: gnome-applets-2.32.1.1-libnotify-0.7.patch
===================================================================
--- battstat/battstat_applet.c
+++ battstat/battstat_applet.c
@@ -42,6 +42,9 @@
 
 #ifdef HAVE_LIBNOTIFY
 #include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
 #endif
 
 #include "battstat.h"
@@ -435,7 +438,12 @@
 			GTK_ICON_LOOKUP_USE_BUILTIN,
 			NULL);
 	
-	NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL, applet);
+	NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+	);
+#else
+	, applet);
+#endif
 
 	/* XXX: it would be nice to pass this as a named icon */
 	notify_notification_set_icon_from_pixbuf (n, icon);
--- gweather/gweather-applet.c
+++ gweather/gweather-applet.c
@@ -30,6 +30,9 @@
 #ifdef HAVE_LIBNOTIFY
 #include <libnotify/notify.h>
 #include <libnotify/notification.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
 #endif
 
 #define GWEATHER_I_KNOW_THIS_IS_UNSTABLE
@@ -471,8 +474,12 @@
 			 if (icon == NULL)
 				 icon = "stock-unknown";
 	           	 
-			 n = notify_notification_new (message, detail, icon,
-					 gw_applet->container);
+			 n = notify_notification_new (message, detail, icon
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+			 );
+#else
+			 , gw_applet->container);
+#endif
 	
 		   	 notify_notification_show (n, &error);
 			 if (error)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-08 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 19:04 [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-applets/files: gnome-applets-2.32.1.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