~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to addressbook/libedata-book/e-book-backend.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
}
204
204
 
205
205
static gboolean
 
206
book_backend_authenticate_sync (EBackend *backend,
 
207
                                ESourceAuthenticator *auth,
 
208
                                GCancellable *cancellable,
 
209
                                GError **error)
 
210
{
 
211
        EBookBackend *book_backend;
 
212
        ESourceRegistry *registry;
 
213
        ESource *source;
 
214
 
 
215
        book_backend = E_BOOK_BACKEND (backend);
 
216
        registry = e_book_backend_get_registry (book_backend);
 
217
        source = e_backend_get_source (backend);
 
218
 
 
219
        return e_source_registry_authenticate_sync (
 
220
                registry, source, auth, cancellable, error);
 
221
}
 
222
 
 
223
static gboolean
206
224
view_notify_update (EDataBookView *view,
207
225
                    gpointer contact)
208
226
{
222
240
e_book_backend_class_init (EBookBackendClass *class)
223
241
{
224
242
        GObjectClass *object_class;
 
243
        EBackendClass *backend_class;
225
244
 
226
245
        g_type_class_add_private (class, sizeof (EBookBackendPrivate));
227
246
 
231
250
        object_class->dispose = book_backend_dispose;
232
251
        object_class->finalize = book_backend_finalize;
233
252
 
 
253
        backend_class = E_BACKEND_CLASS (class);
 
254
        backend_class->authenticate_sync = book_backend_authenticate_sync;
 
255
 
234
256
        class->get_backend_property = book_backend_get_backend_property;
235
257
        class->set_backend_property = book_backend_set_backend_property;
236
258
        class->notify_update        = book_backend_notify_update;