1 |
ssuominen 11/01/30 08:54:16 |
2 |
|
3 |
Added: padevchooser-0.9.3-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/padevchooser/files/padevchooser-0.9.3-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/padevchooser/files/padevchooser-0.9.3-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/padevchooser/files/padevchooser-0.9.3-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: padevchooser-0.9.3-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- src/padevchooser.c |
18 |
+++ src/padevchooser.c |
19 |
@@ -162,7 +162,15 @@ |
20 |
|
21 |
if (!notification) { |
22 |
s = g_strdup_printf("<i>%s</i>\n%s", title, text); |
23 |
- notification = notify_notification_new(title, s, "audio-card", GTK_WIDGET(tray_icon)); |
24 |
+#ifdef NOTIFY_CHECK_VERSION |
25 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
26 |
+ notification = notify_notification_new(title, s, "audio-card"); |
27 |
+#else |
28 |
+ notification = notify_notification_new(title, s, "audio-card", GTK_WIDGET(tray_icon)); |
29 |
+#endif |
30 |
+#else |
31 |
+ notification = notify_notification_new(title, s, "audio-card", GTK_WIDGET(tray_icon)); |
32 |
+#endif |
33 |
notify_notification_set_category(notification, "device.added"); |
34 |
notify_notification_set_urgency(notification, NOTIFY_URGENCY_LOW); |
35 |
g_signal_connect_swapped(G_OBJECT(notification), "closed", G_CALLBACK(notification_closed), NULL); |