wrap around global.play_theme_sound() removal
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/327
This commit is contained in:
parent
764d18a090
commit
7712a7a92e
7
draw.js
7
draw.js
|
|
@ -534,7 +534,12 @@ var DrawingArea = new Lang.Class({
|
|||
// pass the parent (bgContainer) to Flashspot because coords of this are relative
|
||||
let flashspot = new Screenshot.Flashspot(this.get_parent());
|
||||
flashspot.fire();
|
||||
global.play_theme_sound(0, 'screen-capture', "Save as SVG", null);
|
||||
if (global.play_theme_sound) {
|
||||
global.play_theme_sound(0, 'screen-capture', "Save as SVG", null);
|
||||
} else if (global.display && global.display.get_sound_player) {
|
||||
let player = global.display.get_sound_player();
|
||||
player.play_from_theme('screen-capture', "Save as SVG", null);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue