[gnome-documents/wip/rishi/onedrive: 2/8] application: Use GIO's named constant instead of 'standard::type'
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/onedrive: 2/8] application: Use GIO's named constant instead of 'standard::type'
- Date: Fri, 31 Mar 2017 15:37:41 +0000 (UTC)
commit 057098d38b76f6c86e7ab9a13a8f1cb51181e964
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'
src/application.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index e2d0ae4..b2f45ab 100644
--- a/src/application.js
+++ b/src/application.js
@@ -145,7 +145,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]