diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-25 21:44:47 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-25 22:27:35 +0800 |
commit | f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e (patch) | |
tree | 41fc13949e27947070f8f9030f92dafac6206228 /addressbook/gui/widgets/e-addressbook-selector.c | |
parent | 35eab4884cd7aa64139b3ef8ef98cdfa2d58ca53 (diff) | |
download | gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar.gz gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar.bz2 gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar.lz gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar.xz gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.tar.zst gsoc2013-evolution-f5d1b8bc5a40700e81dc1162ba0206cd55daaa9e.zip |
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().
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-selector.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-selector.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |