[gnome-sound-recorder] Use single variable to refer to MainWindow.view
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] Use single variable to refer to MainWindow.view
- Date: Thu, 16 Jan 2014 22:07:30 +0000 (UTC)
commit 11fc33aa6087fe6c284081dca7e735a21a7eb08e
Author: Meg Ford <meg387 gmail com>
Date: Wed Jan 15 22:06:05 2014 -0600
Use single variable to refer to MainWindow.view
src/play.js | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/play.js b/src/play.js
index 1f294f8..b425359 100644
--- a/src/play.js
+++ b/src/play.js
@@ -46,8 +46,7 @@ const _TENTH_SEC = 100000000;
_playPipeline: function(fileName) {
this._fileName = this._fileToPlay;
- let uri = GLib.filename_to_uri(this._fileName, null);
- this.view = MainWindow.view;
+ let uri = GLib.filename_to_uri(this._fileName, null);
this.play = Gst.ElementFactory.make("playbin", "play");
this.play.set_property("uri", uri);
this.sink = Gst.ElementFactory.make("pulsesink", "sink");
@@ -120,7 +119,7 @@ const _TENTH_SEC = 100000000;
},
onEndOfStream: function() {
- this.view.onPlayStopClicked();
+ MainWindow.view.onPlayStopClicked();
},
_onMessageReceived: function(message) {
@@ -181,9 +180,9 @@ const _TENTH_SEC = 100000000;
this.trackDurationSecs = this.trackDuration/Gst.SECOND;
if (time >= 0 && this.playState != PipelineStates.STOPPED) {
- this.view.setLabel(time);
+ MainWindow.view.setLabel(time);
} else if (time >= 0 && this.playState == PipelineStates.STOPPED) {
- this.view.setLabel(0);
+ MainWindow.view.setLabel(0);
}
let absoluteTime = this.clock.get_time();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]