/[gentoo-x86]/net-misc/gwget/files/gwget-1.0.4-libnotify-0.7.patch
Gentoo

Contents of /net-misc/gwget/files/gwget-1.0.4-libnotify-0.7.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Feb 5 16:41:11 2011 UTC (9 years ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Fix building with x11-libs/libnotify >= 0.7.

(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

1 --- src/systray.c
2 +++ src/systray.c
3 @@ -6,6 +6,12 @@
4 #include "systray.h"
5 #include "main_window_cb.h"
6
7 +#ifdef HAVE_NOTIFY
8 +#ifndef NOTIFY_CHECK_VERSION
9 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
10 +#endif
11 +#endif
12 +
13 static GdkPixbuf *systray_load_icon (const gchar *filename);
14 static GdkPixbuf *systray_pixbuf_new_from_file(const gchar *filename);
15 static void systray_clicked(GtkStatusIcon *status_icon,guint button,guint activate_time,gpointer user_data);
16 @@ -224,7 +230,12 @@
17 if (!notify_is_initted ())
18 if (!notify_init ("gwget"))
19 return;
20 - NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name,NULL);
21 + NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name
22 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
23 + );
24 +#else
25 + ,NULL);
26 +#endif
27 notify_notification_show(notification,NULL);
28 #endif
29

  ViewVC Help
Powered by ViewVC 1.1.20