[gnome-documents] application, documents: Use GLib.PRIORITY_DEFAULT instead of 0
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application, documents: Use GLib.PRIORITY_DEFAULT instead of 0
- Date: Tue, 18 Apr 2017 17:16:56 +0000 (UTC)
commit 6cc7173d0e99e3ef2dd4e1c048023768ad07b10d
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 18 13:21:13 2017 +0200
application, documents: Use GLib.PRIORITY_DEFAULT instead of 0
https://bugzilla.gnome.org/show_bug.cgi?id=781451
src/application.js | 2 +-
src/documents.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 2c749ec..4e55bf8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -150,7 +150,7 @@ const Application = new Lang.Class({
file.query_info_async(Gio.FILE_ATTRIBUTE_STANDARD_TYPE,
Gio.FileQueryInfoFlags.NONE,
- 0,
+ GLib.PRIORITY_DEFAULT,
null,
Lang.bind(this,
function(object, res) {
diff --git a/src/documents.js b/src/documents.js
index 9a67d57..8c43e08 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -496,7 +496,7 @@ const DocCommon = new Lang.Class({
this._file = Gio.file_new_for_uri(this.uri);
this._file.query_info_async(Gio.FILE_ATTRIBUTE_THUMBNAIL_PATH,
- 0, 0, null,
+ 0, GLib.PRIORITY_DEFAULT, null,
Lang.bind(this, this._onFileQueryInfo));
},
@@ -528,7 +528,7 @@ const DocCommon = new Lang.Class({
// get the new thumbnail path
this._file.query_info_async(Gio.FILE_ATTRIBUTE_THUMBNAIL_PATH,
- 0, 0, null,
+ 0, GLib.PRIORITY_DEFAULT, null,
Lang.bind(this, this._onThumbnailPathInfo));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]