[gnome-sound-recorder] listview.js: Use standard::display-name for the listview filenames



commit 22978657401f884b82105224aeb09e5fd41e0842
Author: Meg Ford <meg387 gmail com>
Date:   Sat Feb 15 21:06:19 2014 -0600

    listview.js: Use standard::display-name for the listview filenames
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724448

 src/listview.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/listview.js b/src/listview.js
index cffbe96..ca66da9 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -91,7 +91,7 @@ const Listview = new Lang.Class({
     },
             
     enumerateDirectory: function() {
-        this._saveDir.enumerate_children_async('standard::name,time::created,time::modified',
+        this._saveDir.enumerate_children_async('standard::display-name,time::created,time::modified',
                                      Gio.FileQueryInfoFlags.NONE,
                                      GLib.PRIORITY_LOW, 
                                      null, Lang.bind(this, 
@@ -117,7 +117,7 @@ const Listview = new Lang.Class({
                     if (files.length) {
                         files.forEach(Lang.bind(this,
                             function(file) {
-                                let returnedName = file.get_attribute_as_string("standard::name");
+                                let returnedName = file.get_attribute_as_string("standard::display-name");
                                 let finalFileName = GLib.build_filenamev([this._saveDir.get_path(),
                                                                           returnedName]);
                                 let fileUri = GLib.filename_to_uri(finalFileName, null);


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