[gnome-sound-recorder] remove info dialog



commit a0bfd73546d767d6b3aebcbd4b1f1827438c0bf7
Author: Kavan Mevada <kavanmevada gmail com>
Date:   Thu May 28 23:58:03 2020 +0530

    remove info dialog
    
    fixes #70

 data/org.gnome.SoundRecorder.data.gresource.xml  |   1 -
 data/ui/infodialog.ui                            | 201 -----------------------
 data/ui/row.ui                                   |  16 --
 po/POTFILES.in                                   |   2 -
 src/org.gnome.SoundRecorder.src.gresource.xml.in |   1 -
 src/row.js                                       |   8 +-
 6 files changed, 4 insertions(+), 225 deletions(-)
---
diff --git a/data/org.gnome.SoundRecorder.data.gresource.xml b/data/org.gnome.SoundRecorder.data.gresource.xml
index 16a2d37..4654ba1 100644
--- a/data/org.gnome.SoundRecorder.data.gresource.xml
+++ b/data/org.gnome.SoundRecorder.data.gresource.xml
@@ -4,7 +4,6 @@
     <file>application.css</file>
     <file>ui/window.ui</file>
     <file>ui/preferences.ui</file>
-    <file>ui/infodialog.ui</file>
     <file>ui/row.ui</file>
   </gresource>
 </gresources>
diff --git a/data/ui/row.ui b/data/ui/row.ui
index 56709fd..e9a0704 100644
--- a/data/ui/row.ui
+++ b/data/ui/row.ui
@@ -88,22 +88,6 @@
                 </child>
               </object>
             </child>
-            <child>
-              <object class="GtkButton" id="infoButton">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">False</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <child>
-                  <object class="GtkImage">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="icon_name">dialog-information-symbolic</property>
-                  </object>
-                </child>
-              </object>
-            </child>
             <style>
               <class name="header"/>
             </style>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 72041e7..db28586 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,11 +3,9 @@ data/org.gnome.SoundRecorder.gschema.xml.in
 data/org.gnome.SoundRecorder.desktop.in.in
 data/ui/window.ui
 data/ui/preferences.ui
-data/ui/infodialog.ui
 data/ui/row.ui
 src/application.js
 src/utils.js
-src/info.js
 src/row.js
 src/main.js
 src/mainWindow.js
diff --git a/src/org.gnome.SoundRecorder.src.gresource.xml.in 
b/src/org.gnome.SoundRecorder.src.gresource.xml.in
index fa99836..2fcc1ff 100644
--- a/src/org.gnome.SoundRecorder.src.gresource.xml.in
+++ b/src/org.gnome.SoundRecorder.src.gresource.xml.in
@@ -4,7 +4,6 @@
     <file>application.js</file>
     <file>encodingProfile.js</file>
     <file>utils.js</file>
-    <file>info.js</file>
     <file>recordingList.js</file>
     <file>recording.js</file>
     <file>row.js</file>
diff --git a/src/row.js b/src/row.js
index db77d58..28557b1 100644
--- a/src/row.js
+++ b/src/row.js
@@ -1,7 +1,6 @@
 const GObject = imports.gi.GObject;
 const Handy = imports.gi.Handy;
 
-var Info = imports.info;
 var Utils = imports.utils;
 
 var RowState = {
@@ -11,7 +10,7 @@ var RowState = {
 
 var Row = GObject.registerClass({ // eslint-disable-line no-unused-vars
     Template: 'resource:///org/gnome/SoundRecorder/ui/row.ui',
-    InternalChildren: ['playbackStack', 'action_row', 'playButton', 'pauseButton', 'infoButton', 
'deleteButton'],
+    InternalChildren: ['playbackStack', 'action_row', 'playButton', 'pauseButton', 'deleteButton'],
     Signals: {
         'play': { param_types: [GObject.TYPE_STRING] },
         'pause': {},
@@ -22,9 +21,11 @@ var Row = GObject.registerClass({ // eslint-disable-line no-unused-vars
         super._init({});
 
         this._action_row.title = recording.name;
+        const recordTime = Utils.Time.getDisplayTime(
+                (recording.timeCreated > 0) ? recording.timeCreated : recording.timeModified);
 
         recording.connect('notify::duration', () => {
-            this._action_row.subtitle = Utils.Time.formatTime(recording.duration);
+            this._action_row.subtitle = `${Utils.Time.formatTime(recording.duration)} • ${recordTime}`;
         });
 
         this._playButton.connect('clicked', () => {
@@ -37,7 +38,6 @@ var Row = GObject.registerClass({ // eslint-disable-line no-unused-vars
             this.emit('pause');
         });
 
-        this._infoButton.connect('clicked', () => (new Info.InfoDialog(recording)).show());
         this._deleteButton.connect('clicked', () => {
             recording.delete();
             this.emit('deleted');


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