* Bug 667535 — persona created by tpf_persona_dup_for_contact() outlives its
TpContact
* Bug 670196 — Disable GLib deprecation warnings
+* Bug 668415 — Port to Vala 0.15.x
API changes:
* Add PostalAddress.is_empty() and Role.is_empty()
try
{
- /* Note: We have to use key_file_data.size () here to get its length
- * in _bytes_ rather than _characters_. bgo#628930.
- * In Vala >= 0.11, string.size() has been deprecated in favour of
- * string.length (which now returns the byte length, whereas in
- * Vala <= 0.10, it returned the character length). FIXME: We need to
- * take this into account until we depend explicitly on
- * Vala >= 0.11. */
- yield this.file.replace_contents_async (key_file_data,
- key_file_data.length, null, false, FileCreateFlags.PRIVATE,
- cancellable);
+ yield this.file.replace_contents_async (key_file_data.data,
+ null, false, FileCreateFlags.PRIVATE,
+ cancellable, null);
}
catch (Error e)
{
GLIB_REQUIRED=2.24.0
TP_GLIB_REQUIRED=0.13.1
-VALA_REQUIRED=0.14.0
+VALA_REQUIRED=0.15.1
VALADOC_REQUIRED=0.3.1
TRACKER_SPARQL_MAJOR=0.12
TRACKER_SPARQL_REQUIRED=0.12.0
debug ("Searching for modules in folder '%s' ..", dir.get_path ());
var attributes =
- FILE_ATTRIBUTE_STANDARD_NAME + "," +
- FILE_ATTRIBUTE_STANDARD_TYPE + "," +
- FILE_ATTRIBUTE_STANDARD_IS_SYMLINK + "," +
- FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
+ FileAttribute.STANDARD_NAME + "," +
+ FileAttribute.STANDARD_TYPE + "," +
+ FileAttribute.STANDARD_IS_SYMLINK + "," +
+ FileAttribute.STANDARD_CONTENT_TYPE;
GLib.List<FileInfo> infos;
try
{
/* Query for the MIME type; if the file doesn't exist, we'll get an
* appropriate error back, so this also checks for existence. */
- file_info = yield file.query_info_async (FILE_ATTRIBUTE_STANDARD_TYPE,
+ file_info = yield file.query_info_async (FileAttribute.STANDARD_TYPE,
FileQueryInfoFlags.NONE, Priority.DEFAULT, null);
}
catch (Error error)
* Vala <= 0.10, it returned the character length). FIXME: We need to
* take this into account until we depend explicitly on
* Vala >= 0.11. */
- yield this._config_file.replace_contents_async (key_file_data,
- key_file_data.length, null, false, FileCreateFlags.PRIVATE,
- null);
+ yield this._config_file.replace_contents_async (key_file_data.data,
+ null, false, FileCreateFlags.PRIVATE,
+ null, null);
}
catch (Error e)
{
try
{
- yield this._cache_file.load_contents_async (cancellable, out data);
+ yield this._cache_file.load_contents_async (cancellable, out data, null);
}
catch (Error e)
{
try
{
yield this._cache_file.replace_contents_async (
- (string) data, data.length, null, false,
- FileCreateFlags.PRIVATE, cancellable);
+ data, null, false,
+ FileCreateFlags.PRIVATE, cancellable, null);
break;
}
catch (Error e)
{
File backend_f = File.new_for_path (kf_path);
string data = kf.to_data ();
- backend_f.replace_contents (data,
- data.length, null, false, FileCreateFlags.PRIVATE,
- null);
+ backend_f.replace_contents (data.data,
+ null, false, FileCreateFlags.PRIVATE,
+ null, null);
}
catch (Error e)
{
try
{
- file.load_contents (null, out photo_content);
+ file.load_contents (null, out photo_content, null);
var cp = new ContactPhoto ();
cp.type = ContactPhotoType.INLINED;
File kf_relationships_f = File.new_for_path (kf_relationships_path);
try
{
- kf_relationships_f.replace_contents (kf_relationships_data,
- kf_relationships_data.length, null, false,
- FileCreateFlags.PRIVATE, null);
+ kf_relationships_f.replace_contents (kf_relationships_data.data, null,
+ false, FileCreateFlags.PRIVATE, null);
}
catch (Error e)
{
{
File backend_f = File.new_for_path (kf_path);
string data = kf.to_data ();
- backend_f.replace_contents (data,
- data.length, null, false, FileCreateFlags.PRIVATE,
- null);
+ backend_f.replace_contents (data.data, null, false,
+ FileCreateFlags.PRIVATE, null);
}
catch (Error e)
{
}
}
-private abstract class Folks.Inspect.Command
+public abstract class Folks.Inspect.Command
{
protected Client client;