[gnome-documents] application: Use GIO's named constant instead of 'standard::type'



commit ecd084f58d2b3379f7a5aeed2ff6bd86638e7c90
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 30 13:19:42 2017 +0200

    application: Use GIO's named constant instead of 'standard::type'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781451

 src/application.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index f14758b..2c749ec 100644
--- a/src/application.js
+++ b/src/application.js
@@ -148,7 +148,11 @@ const Application = new Lang.Class({
                 return;
             }
 
-            file.query_info_async('standard::type', Gio.FileQueryInfoFlags.NONE, 0, null, Lang.bind(this,
+            file.query_info_async(Gio.FILE_ATTRIBUTE_STANDARD_TYPE,
+                                  Gio.FileQueryInfoFlags.NONE,
+                                  0,
+                                  null,
+                                  Lang.bind(this,
                 function(object, res) {
                     try {
                         let info = object.query_info_finish(res);


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