1 |
ssuominen 11/01/30 21:19:32 |
2 |
|
3 |
Added: midori-0.2.9-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 www-client/midori/files/midori-0.2.9-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/midori/files/midori-0.2.9-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/midori/files/midori-0.2.9-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: midori-0.2.9-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- midori/midori-app.c |
18 |
+++ midori/midori-app.c |
19 |
@@ -42,6 +42,9 @@ |
20 |
|
21 |
#if HAVE_LIBNOTIFY |
22 |
#include <libnotify/notify.h> |
23 |
+ #ifndef NOTIFY_CHECK_VERSION |
24 |
+ #define NOTIFY_CHECK_VERSION(x,y,z) 0 |
25 |
+ #endif |
26 |
#endif |
27 |
|
28 |
struct _MidoriApp |
29 |
@@ -1203,8 +1206,11 @@ |
30 |
if (notify_is_initted ()) |
31 |
{ |
32 |
NotifyNotification* note; |
33 |
- |
34 |
+ #if NOTIFY_CHECK_VERSION(0, 7, 0) |
35 |
+ note = notify_notification_new (title, message, "midori"); |
36 |
+ #else |
37 |
note = notify_notification_new (title, message, "midori", NULL); |
38 |
+ #endif |
39 |
notify_notification_show (note, NULL); |
40 |
g_object_unref (note); |
41 |
} |