[gnome-sound-recorder] rename record -> recorder



commit 6866f345b6602a58b18ef6713adb367da11f9a94
Author: Kavan Mevada <kavanmevada gmail com>
Date:   Fri Jun 5 23:34:03 2020 +0530

    rename record -> recorder

 src/mainWindow.js                                | 18 +++++++++---------
 src/org.gnome.SoundRecorder.src.gresource.xml.in |  2 +-
 src/{record.js => recorder.js}                   |  4 ++--
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index a1247f2..3b394d8 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -28,7 +28,7 @@ const Recording = imports.recording.Recording;
 const Row = imports.row.Row;
 const RowState = imports.row.RowState;
 const Player = imports.player.Player;
-const Record = imports.record;
+const Recorder = imports.recorder.Recorder;
 const Waveform = imports.waveform;
 
 var view = null;
@@ -43,24 +43,24 @@ var MainWindow = GObject.registerClass({
             icon_name: pkg.name,
         }, params));
 
-        this._record = new Record.Record();
+        this._recorder = new Recorder();
         this.player = new Player();
         view = this;
 
-        this._record.connect('waveform', (_, time, peak) => {
+        this._recorder.connect('waveform', (_, time, peak) => {
             if (this.wave)
                 this.wave._drawEvent(time, peak);
         });
 
-        this._record.connect('notify::duration', _record => {
-            this._recordTimeLabel.label = Utils.Time.formatTime(_record.duration);
+        this._recorder.connect('notify::duration', _recorder => {
+            this._recordTimeLabel.label = Utils.Time.formatTime(_recorder.duration);
         });
 
         this.connect('destroy', () => {
             if (this.wave)
                 this.wave.endDrawing();
             this.player.stop();
-            this._record.stop();
+            this._recorder.stop();
         });
 
         this._recordingList = new RecordingList();
@@ -90,15 +90,15 @@ var MainWindow = GObject.registerClass({
     onRecordStart() {
         this.player.stop();
         this._mainStack.set_visible_child_name('recorderView');
-        this._record.start();
+        this._recorder.start();
 
         this.wave = new Waveform.WaveForm(this._recordGrid, null);
     }
 
     onRecordStop() {
-        this._record.stop();
+        this._recorder.stop();
 
-        let fileUri = this._record.initialFileName;
+        let fileUri = this._recorder.initialFileName;
         let recordedFile = Gio.file_new_for_path(fileUri);
         let recording = new Recording(recordedFile);
         this._recordingList.insert(0, recording);
diff --git a/src/org.gnome.SoundRecorder.src.gresource.xml.in 
b/src/org.gnome.SoundRecorder.src.gresource.xml.in
index a24b417..7ead7f0 100644
--- a/src/org.gnome.SoundRecorder.src.gresource.xml.in
+++ b/src/org.gnome.SoundRecorder.src.gresource.xml.in
@@ -9,7 +9,7 @@
     <file>main.js</file>
     <file>mainWindow.js</file>
     <file>player.js</file>
-    <file>record.js</file>
+    <file>recorder.js</file>
     <file>waveform.js</file>
   </gresource>
 </gresources>
diff --git a/src/record.js b/src/recorder.js
similarity index 99%
rename from src/record.js
rename to src/recorder.js
index e6bb753..c982269 100644
--- a/src/record.js
+++ b/src/recorder.js
@@ -55,7 +55,7 @@ var EncodingProfiles = [
         mimeType: 'audio/mpeg' },
 ];
 
-var Record = new GObject.registerClass({
+var Recorder = new GObject.registerClass({
     Properties: {
         'duration': GObject.ParamSpec.int(
             'duration',
@@ -66,7 +66,7 @@ var Record = new GObject.registerClass({
     Signals: {
         'waveform': { param_types: [GObject.TYPE_INT, GObject.TYPE_FLOAT] },
     },
-}, class Record extends GObject.Object {
+}, class Recorder extends GObject.Object {
     _init() {
         super._init({});
         try {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]