[gnome-sound-recorder] fileUtil.js, mainWindow.js: make sounds and title the same



commit 8e37e69a50d021bb7e6fc1e43cc5ba43dcf05a2e
Author: Meg Ford <meg387 gmail com>
Date:   Mon Mar 3 08:08:41 2014 -0600

    fileUtil.js, mainWindow.js: make sounds and title the same

 src/fileUtil.js   |    1 -
 src/mainWindow.js |    7 +++----
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/fileUtil.js b/src/fileUtil.js
index 40bc77e..62c126e 100644
--- a/src/fileUtil.js
+++ b/src/fileUtil.js
@@ -53,7 +53,6 @@ const OffsetController = new Lang.Class({
     
     getEndIdx: function() {
         totItems = MainWindow.list.getItemCount();
-        log(totItems);
         if (CurrentEndIdx < totItems) {
             this.endIdx = CurrentEndIdx -1;
         } else {
diff --git a/src/mainWindow.js b/src/mainWindow.js
index b587af1..8133ddf 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -317,16 +317,15 @@ const MainView = new Lang.Class({
                   
         this.groupGrid.add(this._scrolledWin);
         this._scrolledWin.show();
-        let itemNumber = list.getItemCount();
-        let title;
+        let sounds = list.getItemCount();
         
         // Translators: This is the title in the headerbar
         if (sounds > 0) {
-            title = Gettext.ngettext("%d Recorded Sound",
+            sounds = Gettext.ngettext("%d Recorded Sound",
                                      "%d Recorded Sounds", 
                                       sounds).format(sounds);
         }
-        header.set_title(title);
+        header.set_title(sounds);
         this.listBox = null;
         this._startIdx = 0;
         this._endIdx = offsetController.getEndIdx();


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