Commit 69baa2e6 authored by Milan Crha's avatar Milan Crha

eds: Adapt to libebook API changes

Closes !10
parent aebece7e
Pipeline #82561 passed with stage
in 4 minutes and 42 seconds
......@@ -610,7 +610,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
/* _addressbook is guaranteed to be non-null before we ensure that
* prepare() has already been called. */
yield ((!) this._addressbook).remove_contact (
((Edsf.Persona) persona).contact, null);
((Edsf.Persona) persona).contact, E.BookOperationFlags.NONE, null);
}
catch (GLib.Error e)
{
......@@ -1258,7 +1258,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
/* Commit the new contact. _addressbook is asserted as being non-null
* above. */
yield ((!) this._addressbook).add_contact (contact, null,
yield ((!) this._addressbook).add_contact (contact, E.BookOperationFlags.NONE, null,
out added_uid);
debug ("Finished sending new contact to EDS; received UID %s.",
......@@ -1377,7 +1377,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
/* Commit the modification. _addressbook is asserted as being non-null
* above. */
yield ((!) this._addressbook).modify_contact (contact, null);
yield ((!) this._addressbook).modify_contact (contact, E.BookOperationFlags.NONE, null);
timeout_id = Timeout.add_seconds (PersonaStore._property_change_timeout, () =>
{
......
......@@ -65,7 +65,7 @@ inspect_tool_enabled = get_option('inspect_tool')
# Dependencies
#-------------------------------------------------
min_glib_version = '2.44'
min_eds_version = '3.13.90'
min_eds_version = '3.33.2'
valac = meson.get_compiler('vala')
cc = meson.get_compiler('c')
......
......@@ -107,7 +107,7 @@ public class Main
SList<string> uids;
try
{
book_client.add_contacts_sync (contacts, out uids, null);
book_client.add_contacts_sync (contacts, E.BookOperationFlags.NONE, out uids, null);
}
catch (Error e)
{
......
......@@ -41,7 +41,7 @@ public class Main
SList<string> uids;
book_client.get_contacts_uids_sync (
"(contains \"x-evolution-any-field\" \"\")", out uids);
book_client.remove_contacts_sync (uids);
book_client.remove_contacts_sync (uids, E.BookOperationFlags.NONE);
}
private static string _uid = "";
......
......@@ -71,7 +71,7 @@ public class EdsTest.Backend
{
yield this._addressbook.get_contact (uid, null, out contact);
this._set_contact_fields (contact, updated_data);
yield this._addressbook.modify_contact (contact, null);
yield this._addressbook.modify_contact (contact, E.BookOperationFlags.NONE, null);
}
catch (GLib.Error e)
{
......@@ -86,7 +86,7 @@ public class EdsTest.Backend
try
{
yield this._addressbook.get_contact (uid, null, out contact);
yield this._addressbook.remove_contact (contact, null);
yield this._addressbook.remove_contact (contact, E.BookOperationFlags.NONE, null);
}
catch (GLib.Error e)
{
......@@ -211,7 +211,7 @@ public class EdsTest.Backend
{
GLib.SList<string> uids;
yield this._addressbook.add_contacts (contacts, null, out uids);
yield this._addressbook.add_contacts (contacts, E.BookOperationFlags.NONE, null, out uids);
foreach (unowned string uid in uids)
this._e_contacts += uid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment