From 571e5e17f8b3dae8ecd81cd1f437ebb128159575 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 8 Dec 2010 00:16:09 -0500 Subject: Adapt addressbook/gui/widgets to the new ESource API. --- addressbook/gui/widgets/e-addressbook-table-adapter.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-table-adapter.c') diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c index 5a2a9b473f..165f1d7591 100644 --- a/addressbook/gui/widgets/e-addressbook-table-adapter.c +++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c @@ -170,9 +170,11 @@ addressbook_set_value_at (ETableModel *etc, EAddressbookTableAdapterPrivate *priv = adapter->priv; if (e_addressbook_model_get_editable (priv->model)) { + ESourceRegistry *registry; EBookClient *book_client; EContact *contact; + registry = e_addressbook_model_get_registry (priv->model); book_client = e_addressbook_model_get_client (priv->model); if (col >= COLS || row >= e_addressbook_model_contact_count (priv->model)) @@ -196,7 +198,7 @@ addressbook_set_value_at (ETableModel *etc, e_contact_set (contact, col, (gpointer) val); eab_merging_book_modify_contact ( - book_client, + registry, book_client, contact, contact_modified_cb, etc); g_object_unref (contact); @@ -223,6 +225,7 @@ addressbook_append_row (ETableModel *etm, { EAddressbookTableAdapter *adapter = E_ADDRESSBOOK_TABLE_ADAPTER (etm); EAddressbookTableAdapterPrivate *priv = adapter->priv; + ESourceRegistry *registry; EBookClient *book_client; EContact *contact; gint col; @@ -234,8 +237,11 @@ addressbook_append_row (ETableModel *etm, e_contact_set (contact, col, (gpointer) val); } + registry = e_addressbook_model_get_registry (priv->model); book_client = e_addressbook_model_get_client (priv->model); - eab_merging_book_add_contact (book_client, contact, NULL, NULL); + + eab_merging_book_add_contact ( + registry, book_client, contact, NULL, NULL); g_object_unref (contact); } -- cgit v1.2.3