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 543875 - Use libcanberra to play a test sound when changing the volume
Use libcanberra to play a test sound when changing the volume
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: mixer
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-20 16:04 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2013-01-04 21:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
20080720_bgo_543875_canberra+mixer.diff (2.74 KB, patch)
2008-07-20 16:05 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
20080720_bgo_543875_canberra+mixer.diff: v2 (2.80 KB, patch)
2008-07-20 16:23 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
bgo_543875_canberra+mixer.diff (2.75 KB, patch)
2008-07-22 05:30 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review

Description Diego Escalante Urrelo (not reading bugmail) 2008-07-20 16:04:28 UTC
Patch attached
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2008-07-20 16:05:31 UTC
Created attachment 114862 [details] [review]
20080720_bgo_543875_canberra+mixer.diff

Proposed patch
Comment 2 Lennart Poettering 2008-07-20 16:14:55 UTC
Three things:

- I think you want to use audio-xxxx instead of complete-media-burn here.

- It would make sense to use ca_gtk_play_for_event() instead of ca_gtk_play_for_widget() here

- It would be cool to set CA_PROP_EVENT_DESCRIPTION for all sound events, to help a11y people.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2008-07-20 16:23:06 UTC
Created attachment 114864 [details] [review]
20080720_bgo_543875_canberra+mixer.diff: v2

Updated following Lennart's comments. Note that audio-volume-change is not present in the freedesktop theme, you'll have to copy something there to test this.
Comment 4 Lennart Poettering 2008-07-20 16:25:39 UTC
Looks good to me! Thank you!
Comment 5 Bastien Nocera 2008-07-21 12:15:06 UTC
I haven't looked at the patch in great details yet. I just want to be sure that the event is only triggered when the mouse is released though.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2008-07-21 14:40:33 UTC
Yes, that was my first problem. But now you made me wonder if it works with keyboard...
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2008-07-21 15:37:41 UTC
Well it doesn't work with keyboard. It got tricky now...
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 05:30:33 UTC
Created attachment 114981 [details] [review]
bgo_543875_canberra+mixer.diff

Updated, this works with keyboard!. It produces the sound only when click is released and keyboard button is pressed. Works fine. Please test.
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2008-12-03 01:38:49 UTC
Ping?
Comment 10 Callum McKenzie 2008-12-03 01:52:38 UTC
I'm currently doing some serious renovation on the mixer applet that should occur before this goes in. Including the test sound is part of the plan for this work. Merging in your patch should be trivial despite the changes.
Comment 11 Diego Escalante Urrelo (not reading bugmail) 2009-12-02 22:57:58 UTC
Bastien I think you committed something like this for the volume applet in 2.28, at least on Fedora I recall a test sound when changing the volume, although perhaps that's a Fedora only patch.
Comment 12 Bastien Nocera 2009-12-03 00:14:53 UTC
/me doesn't care much anymore, as the volume "applet" is now the notification area icon provided by gnome-media.
Comment 13 Diego Escalante Urrelo (not reading bugmail) 2009-12-03 02:15:31 UTC
AH! right, I forgot this was once an applet. There's indeed a sound in the tray icon.

/me doesn't care anymore