1 |
ssuominen 11/02/05 11:59:37 |
2 |
|
3 |
Added: gejengel-0.1.4-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 media-sound/gejengel/files/gejengel-0.1.4-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/gejengel/files/gejengel-0.1.4-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/gejengel/files/gejengel-0.1.4-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: gejengel-0.1.4-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- src/Plugins/notificationplugin.cpp |
18 |
+++ src/Plugins/notificationplugin.cpp |
19 |
@@ -33,6 +33,10 @@ |
20 |
#include "ui/sharedfunctions.h" |
21 |
#include "MusicLibrary/album.h" |
22 |
|
23 |
+#ifndef NOTIFY_CHECK_VERSION |
24 |
+#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
25 |
+#endif |
26 |
+ |
27 |
using namespace std; |
28 |
using namespace Gtk; |
29 |
|
30 |
@@ -85,7 +89,12 @@ |
31 |
} |
32 |
} |
33 |
|
34 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
35 |
+ m_pNotification = notify_notification_new("dummy", "", NULL); |
36 |
+#else |
37 |
m_pNotification = notify_notification_new("dummy", "", NULL, NULL); |
38 |
+#endif |
39 |
+ |
40 |
notify_notification_set_timeout (m_pNotification, NOTIFY_EXPIRES_DEFAULT); |
41 |
notify_notification_set_urgency (m_pNotification, NOTIFY_URGENCY_NORMAL); |