diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 16:19:17 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 16:19:17 +0100 |
commit | 15f16c61af28fa81dc21ce9996faaa6d72a301ae (patch) | |
tree | 75a62f5ab79ad153750c2bad81111801b7c14b85 | |
parent | 70870b1ea242f8fbbab1f7a6e337fa32f5e63926 (diff) | |
download | folks-15f16c61af28fa81dc21ce9996faaa6d72a301ae.tar.gz |
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.
-rw-r--r-- | 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 f09e6939..65589a63 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."), |