[gnome-sound-recorder] playback minor bug fix
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] playback minor bug fix
- Date: Tue, 18 Aug 2020 20:00:31 +0000 (UTC)
commit e3309b983874e0121b8282b5cd748ba9e2069e93
Author: Kavan Mevada <kavanmevada gmail com>
Date: Tue Aug 18 13:08:02 2020 -0500
playback minor bug fix
src/recordingsListBox.js | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/recordingsListBox.js b/src/recordingsListBox.js
index 7df6e43..9ec2097 100644
--- a/src/recordingsListBox.js
+++ b/src/recordingsListBox.js
@@ -37,6 +37,17 @@ var RecordingsListBox = new GObject.registerClass({
this.bind_model(model, recording => {
let row = new Row(recording);
+ row.waveform.connect('button-press-event', _ => {
+ if (!this.activePlayingRow || this.activePlayingRow !== row) {
+
+ if (this.activePlayingRow)
+ this.activePlayingRow.waveform.position = 0.0;
+
+ this.activePlayingRow = row;
+ this._player.set_uri(recording.uri);
+ }
+ });
+
row.waveform.connect('position-changed', (_wave, _position) => {
this._player.seek(_position * row._recording.duration);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]