[gnome-boxes/wip/rishi/my-fixes: 4/9] wizard: Asynchronously query the file's STANDARD_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/rishi/my-fixes: 4/9] wizard: Asynchronously query the file's STANDARD_TYPE
- Date: Thu, 24 Aug 2017 17:39:28 +0000 (UTC)
commit b2485eeb62a87361df10d8e17f899192d8483505
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Aug 24 19:32:46 2017 +0200
wizard: Asynchronously query the file's STANDARD_TYPE
src/wizard.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 16879ad..1c73824 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -291,7 +291,10 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
if (!supported)
throw new Boxes.Error.INVALID (_("Unsupported file"));
- var info = file.query_info (FileAttribute.STANDARD_TYPE, FileQueryInfoFlags.NONE, null);
+ var info = yield file.query_info_async (FileAttribute.STANDARD_TYPE,
+ FileQueryInfoFlags.NONE,
+ Priority.DEFAULT,
+ null);
var file_type = info.get_file_type ();
if (file_type != FileType.REGULAR && file_type != FileType.SYMBOLIC_LINK)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]