[folks] tools: Stop using deprecated GIO API
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] tools: Stop using deprecated GIO API
- Date: Tue, 16 Jun 2015 16:04:19 +0000 (UTC)
commit 15f16c61af28fa81dc21ce9996faaa6d72a301ae
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Jun 16 16:19:17 2015 +0100
tools: Stop using deprecated GIO API
The bindings for file attributes were changed in Vala 0.16 (we depend on
Vala 0.22), so it’s safe to port from the deprecated API to the latest.
tools/import-pidgin.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/import-pidgin.vala b/tools/import-pidgin.vala
index f09e693..65589a6 100644
--- a/tools/import-pidgin.vala
+++ b/tools/import-pidgin.vala
@@ -54,7 +54,7 @@ public class Folks.Importers.Pidgin : Folks.Importer
try
{
file_info = yield file.query_info_async (
- FILE_ATTRIBUTE_ACCESS_CAN_READ, FileQueryInfoFlags.NONE,
+ FileAttribute.ACCESS_CAN_READ, FileQueryInfoFlags.NONE,
Priority.DEFAULT);
}
catch (GLib.Error e)
@@ -66,7 +66,7 @@ public class Folks.Importers.Pidgin : Folks.Importer
e.message);
}
- if (!file_info.get_attribute_boolean (FILE_ATTRIBUTE_ACCESS_CAN_READ))
+ if (!file_info.get_attribute_boolean (FileAttribute.ACCESS_CAN_READ))
{
/* Translators: the parameter is a filename. */
throw new ImportError.MALFORMED_INPUT (_("File %s is not readable."),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]