1 |
ssuominen 11/02/05 08:10:58 |
2 |
|
3 |
Added: ario-1.5-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7 and remove useless libtool and static archive files for plugins. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-sound/ario/files/ario-1.5-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/ario/files/ario-1.5-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/ario/files/ario-1.5-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ario-1.5-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- plugins/libnotify/ario-notifier-libnotify.c |
18 |
+++ plugins/libnotify/ario-notifier-libnotify.c |
19 |
@@ -30,6 +30,10 @@ |
20 |
#include "lib/ario-conf.h" |
21 |
#include "ario-debug.h" |
22 |
|
23 |
+#ifndef NOTIFY_CHECK_VERSION |
24 |
+#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
25 |
+#endif |
26 |
+ |
27 |
struct ArioNotifierLibnotifyPrivate |
28 |
{ |
29 |
NotifyNotification *notification; |
30 |
@@ -122,9 +126,13 @@ |
31 |
ARIO_LOG_FUNCTION_START; |
32 |
notifier_libnotify->priv = ARIO_NOTIFIER_LIBNOTIFY_GET_PRIVATE (notifier_libnotify); |
33 |
|
34 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
35 |
+ notifier_libnotify->priv->notification = notify_notification_new ("Ario", NULL, NULL); |
36 |
+#else |
37 |
notifier_libnotify->priv->notification = notify_notification_new ("Ario", NULL, NULL, NULL); |
38 |
notify_notification_attach_to_status_icon (notifier_libnotify->priv->notification, |
39 |
GTK_STATUS_ICON (ario_tray_icon_get_instance ())); |
40 |
+#endif |
41 |
} |
42 |
|
43 |
static void |