Gentoo Archives: gentoo-commits

From: "Serkan Kaba (serkan)" <serkan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/notification-daemon/files: notification-daemon-0.4.0-report-sound-capability.patch
Date: Sat, 02 May 2009 22:46:44
Message-Id: E1M0Nyk-0006Jd-Bl@stork.gentoo.org
1 serkan 09/05/02 22:46:42
2
3 Added:
4 notification-daemon-0.4.0-report-sound-capability.patch
5 Log:
6 Add patch for the server to report its sound capability when built with gstreamer USE flag. Fixes bug #268310.
7 (Portage version: 2.2_rc31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 x11-misc/notification-daemon/files/notification-daemon-0.4.0-report-sound-capability.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/notification-daemon/files/notification-daemon-0.4.0-report-sound-capability.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/notification-daemon/files/notification-daemon-0.4.0-report-sound-capability.patch?rev=1.1&content-type=text/plain
14
15 Index: notification-daemon-0.4.0-report-sound-capability.patch
16 ===================================================================
17 diff -Nur notification-daemon-0.4.0/src/daemon/daemon.c notification-daemon-0.4.0_patched/src/daemon/daemon.c
18 --- notification-daemon-0.4.0/src/daemon/daemon.c 2008-09-26 04:27:07.000000000 +0300
19 +++ notification-daemon-0.4.0_patched/src/daemon/daemon.c 2009-05-02 18:50:32.000000000 +0300
20 @@ -1370,14 +1370,23 @@
21 gboolean
22 notify_daemon_get_capabilities(NotifyDaemon *daemon, char ***caps)
23 {
24 +#ifdef HAVE_GSTREAMER
25 + *caps = g_new0(char *, 7);
26 +#else
27 *caps = g_new0(char *, 6);
28 +#endif
29
30 (*caps)[0] = g_strdup("actions");
31 (*caps)[1] = g_strdup("body");
32 (*caps)[2] = g_strdup("body-hyperlinks");
33 (*caps)[3] = g_strdup("body-markup");
34 (*caps)[4] = g_strdup("icon-static");
35 +#ifdef HAVE_GSTREAMER
36 + (*caps)[5] = g_strdup("sound");
37 + (*caps)[6] = NULL;
38 +#else
39 (*caps)[5] = NULL;
40 +#endif
41
42 return TRUE;
43 }