After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542693 - Use sounds for events, with libcanberra
Use sounds for events, with libcanberra
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other Linux
: Normal enhancement
: gnome-2-24
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-12 17:36 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2008-07-28 10:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
20080718_bgo_542693_epiphany-canberra.diff (1.98 KB, patch)
2008-07-18 15:29 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
[PATCH] Libcanberra for sounds (2.04 KB, patch)
2008-07-22 04:19 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Diego Escalante Urrelo (not reading bugmail) 2008-07-12 17:36:24 UTC
The feeling at guadec was positive for libcanberra and the sound usage across the desktop, hence here's the bug for epiphany.
So far I could think of:
- download complete

Sorry, I'm short in creativity right now.
Comment 1 Reinout van Schouwen 2008-07-14 22:49:22 UTC
Maybe a warning sound when an error page s shown?
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2008-07-17 18:16:53 UTC
Checking http://0pointer.de/public/sound-naming-spec.html I couldn't find any other sensible thing that would have to be implemented directly in Epiphany.
I don't recall if we get an alert window when a download is cut in the middle (by network error or whatever). If not, we could have another notification with an error sound, the error dialog should be catched by the gtk+ plugin of canberra I think.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2008-07-18 15:29:01 UTC
Created attachment 114778 [details] [review]
20080718_bgo_542693_epiphany-canberra.diff

Adds the download finished sound, since there's no download-complete sound in the test sound theme, i used phone-incoming-call. Obviously we'll be using download-complete, this is left like that just for the sake of actually hearing something.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2008-07-20 16:25:08 UTC
Note: this is missing CA_PROP_EVENT_DESCRIPTION and /not sure/ if i18n in the other string props.
Comment 5 Lennart Poettering 2008-07-20 16:27:06 UTC
The event id is phone-incoming-call. That doesn't look right to me...
Comment 6 Bastien Nocera 2008-07-21 12:17:37 UTC
The event is called "complete-download". See http://0pointer.de/public/sound-naming-spec.html
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 04:19:09 UTC
Created attachment 114978 [details] [review]
[PATCH] Libcanberra for sounds

Enable the download-complete sound for the downloader.
---
 configure.ac            |    8 ++++++++
 embed/downloader-view.c |   10 ++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 04:19:44 UTC
Oh wow, awesomeness. git-send-bugzilla.
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 23:08:22 UTC
Marking the old patch obsolete.
Comment 10 Diego Escalante Urrelo (not reading bugmail) 2008-07-24 21:06:03 UTC
Done.
Comment 11 Marc-Andre Lureau 2008-07-25 08:33:57 UTC
I wonder if this was the proper way to do it. libnotify support "sound hint", it could have been a patch of notify-daemon instead, and that would have work for any notifier.

I am not sure if "sound hint" is meant for "sound names", but that would not be difficult to convince them to us that. To be even more flexible, the sound daemon should support customization of actions (matching of events => popup, sound, blink). But let's not make it too complicated for nothing, of course.
Comment 12 Bastien Nocera 2008-07-25 08:56:55 UTC
Actually, I think libcanberra should talk to the notification-daemon when important actions finish, to get a visual cue about a problem.
Comment 13 Marc-Andre Lureau 2008-07-25 09:11:02 UTC
(In reply to comment #12)
> Actually, I think libcanberra should talk to the notification-daemon when
> important actions finish, to get a visual cue about a problem.
> 

I am not fond of this idea.. if instead, the preferred path for notifications would be libnotify, it would get an error "_from_ libcanberra returns, and then choose to display a bubble. of course everything is possible and I hate chicken-egg problems
Comment 14 Wouter Bolsterlee (uws) 2008-07-25 09:22:23 UTC
It looks to me libcanberra-gtk is a required dependency with this patch. Then why the #ifdef HAVE_LIBCANBERRA_GTK in the code?
Comment 15 Diego Escalante Urrelo (not reading bugmail) 2008-07-25 18:39:27 UTC
Fixed the optional'ness of this. Thanks.