1 |
ssuominen 11/01/29 14:10:41 |
2 |
|
3 |
Added: transmission-2.13-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7 wrt #352128 by Priit Laes. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-p2p/transmission/files/transmission-2.13-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/files/transmission-2.13-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/files/transmission-2.13-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: transmission-2.13-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
http://bugs.gentoo.org/352128 |
18 |
|
19 |
--- gtk/notify.c |
20 |
+++ gtk/notify.c |
21 |
@@ -160,7 +160,12 @@ tr_notify_added( const char * name ) |
22 |
if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) ) |
23 |
{ |
24 |
NotifyNotification * n = notify_notification_new( |
25 |
- _( "Torrent Added" ), name, NULL, NULL ); |
26 |
+ _( "Torrent Added" ), name, NULL |
27 |
+/* the fourth argument was removed in libnotify 0.7.0 */ |
28 |
+#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) |
29 |
+ , NULL |
30 |
+#endif |
31 |
+ ); |
32 |
addIcon( n ); |
33 |
notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT ); |
34 |
notify_notification_show( n, NULL ); |