From f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 25 Feb 2013 08:44:47 -0500 Subject: EAddressbookModel: Replace "registry" property with "client-cache". Registry can still be accessed through e_client_cache_ref_registry(), but we'll want to utilize the client cache as well. e_addressbook_model_new() now takes an EClientCache instead of an ESourceRegistry, and e_addressbook_model_get_registry() is replaced by e_addressbook_model_get_client_cache(). --- addressbook/gui/widgets/e-addressbook-selector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-selector.c') diff --git a/addressbook/gui/widgets/e-addressbook-selector.c b/addressbook/gui/widgets/e-addressbook-selector.c index 0ae747f404..7ef9ccd047 100644 --- a/addressbook/gui/widgets/e-addressbook-selector.c +++ b/addressbook/gui/widgets/e-addressbook-selector.c @@ -311,8 +311,7 @@ addressbook_selector_data_dropped (ESourceSelector *selector, string = (const gchar *) gtk_selection_data_get_data (selection_data); remove_from_source = (action == GDK_ACTION_MOVE); - model = e_addressbook_view_get_model (priv->current_view); - registry = e_addressbook_model_get_registry (model); + registry = e_source_selector_get_registry (selector); eab_source_and_contact_list_from_string ( registry, string, NULL, &list); @@ -320,6 +319,7 @@ addressbook_selector_data_dropped (ESourceSelector *selector, if (list == NULL) return FALSE; + model = e_addressbook_view_get_model (priv->current_view); source_client = e_addressbook_model_get_client (model); g_return_val_if_fail (E_IS_BOOK_CLIENT (source_client), FALSE); -- cgit v1.2.3