ShellGlobal: improve code to emit sound events
Use libcanberra-gtk3 and improve the set of context properties to correctly associate the sounds with the shell. https://bugzilla.gnome.org/show_bug.cgi?id=642831
This commit is contained in:
@ -119,7 +119,10 @@ const StreamSlider = new Lang.Class({
|
||||
|
||||
_notifyVolumeChange: function() {
|
||||
global.cancel_theme_sound(VOLUME_NOTIFY_ID);
|
||||
global.play_theme_sound(VOLUME_NOTIFY_ID, 'audio-volume-change');
|
||||
global.play_theme_sound(VOLUME_NOTIFY_ID,
|
||||
'audio-volume-change',
|
||||
_("Volume changed"),
|
||||
Clutter.get_current_event ());
|
||||
},
|
||||
|
||||
_updateVolume: function() {
|
||||
|
Reference in New Issue
Block a user