#187: notification-daemon-0.4.0-report-sound-capability.patch - Galago - Trac

Search:

# Ticket #187: notification-daemon-0.4.0-report-sound-capability.patch

Line |
--- | ---
1 | diff -Nur notification-daemon-0.4.0/src/daemon/daemon.c notification-daemon-0.4.0_patched/src/daemon/daemon.c
2 | --- notification-daemon-0.4.0/src/daemon/daemon.c 2008-09-26 04:27:07.000000000 +0300
3 | +++ notification-daemon-0.4.0_patched/src/daemon/daemon.c 2009-05-02 18:50:32.000000000 +0300
4 | @@ -1370,14 +1370,23 @@
5 | gboolean
6 | notify_daemon_get_capabilities(NotifyDaemon *daemon, char ***caps)
7 | {
8 | +#ifdef HAVE_GSTREAMER
9 | + *caps = g_new0(char *, 7);
10 | +#else
11 | *caps = g_new0(char *, 6);
12 | +#endif
13 |
14 | (*caps)[0] = g_strdup("actions");
15 | (*caps)[1] = g_strdup("body");
16 | (*caps)[2] = g_strdup("body-hyperlinks");
17 | (*caps)[3] = g_strdup("body-markup");
18 | (*caps)[4] = g_strdup("icon-static");
19 | +#ifdef HAVE_GSTREAMER
20 | + (*caps)[5] = g_strdup("sound");
21 | + (*caps)[6] = NULL;
22 | +#else
23 | (*caps)[5] = NULL;
24 | +#endif
25 |
26 | return TRUE;
27 | }

### Download in other formats:

- Original Format