[gnome-sound-recorder] listview.js, fileUtil.js: return info about 20 files instead of ten since we can make the window lar



commit 4686c128fd405ad3f5aa9616ece5b1e88f6d89af
Author: Meg Ford <meg387 gmail com>
Date:   Thu Jan 16 19:14:17 2014 -0600

    listview.js, fileUtil.js: return info about 20 files instead of ten since we can make the window larger 
and can fit more files.

 src/fileUtil.js |    4 ++--
 src/listview.js |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/fileUtil.js b/src/fileUtil.js
index 5e7a51b..bd010f6 100644
--- a/src/fileUtil.js
+++ b/src/fileUtil.js
@@ -34,7 +34,7 @@ const Listview = imports.listview;
 const MainWindow = imports.mainWindow;
 const Record = imports.record;
 
-const _OFFSET_STEP = 10;
+const _OFFSET_STEP = 20;
 let CurrentEndIdx;
 
 const OffsetController = new Lang.Class({
@@ -54,7 +54,7 @@ const OffsetController = new Lang.Class({
     getEndIdx: function() {
         this.totItems = MainWindow.list.getItemCount();
         if (CurrentEndIdx < this.totItems) {
-            this.endIdx = CurrentEndIdx;
+            this.endIdx = CurrentEndIdx -1;
         } else {
             this.endIdx = this.totItems - 1;
         }
diff --git a/src/listview.js b/src/listview.js
index cf9d938..a615b43 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -112,7 +112,7 @@ const Listview = new Lang.Class({
     _onNextFileComplete: function () {
         fileInfo = [];
         try{
-            this._enumerator.next_files_async(10, GLib.PRIORITY_DEFAULT, null, Lang.bind(this,
+            this._enumerator.next_files_async(20, GLib.PRIORITY_DEFAULT, null, Lang.bind(this,
                 function(obj, res) {
                     let files = obj.next_files_finish(res);
                     


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