aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-table-adapter.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-12-08 13:16:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-03 11:00:39 +0800
commit571e5e17f8b3dae8ecd81cd1f437ebb128159575 (patch)
tree5c96bd734f741f6af41eb97ac2657dae93f4cb20 /addressbook/gui/widgets/e-addressbook-table-adapter.c
parentb99b09e4570d7b24c23fc8b97606eaa9057bbd5c (diff)
downloadgsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar.gz
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar.bz2
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar.lz
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar.xz
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.tar.zst
gsoc2013-evolution-571e5e17f8b3dae8ecd81cd1f437ebb128159575.zip
Adapt addressbook/gui/widgets to the new ESource API.
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-table-adapter.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-table-adapter.c10
1 files changed, 8 insertions, 2 deletions
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);
}