Rewrite e_load_book_source_async().
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 18 Aug 2010 11:08:06 +0000 (07:08 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 18 Aug 2010 20:45:09 +0000 (16:45 -0400)
commit7494d975b37e250f78964b11a768dfea06c6f780
tree2f3c692bac5f393a5f723aeae55e3bb0f7b0bb7d
parent9d0bd0f19f7639fd83739fcba1cbc51f9b38ce3e
Rewrite e_load_book_source_async().

This is a late libedataserverui API break, but so be it.

Rewrite e_load_book_source_async() to use a GIO-style asynchronous
pattern, and add a corresponding e_load_book_source_finish().

The API is fairly obvious:

   void     e_load_book_source_async   (ESource *source,
                                        GtkWindow *parent,
                                        GCancellable *cancellable,
                                        GAsyncReadyCallback callback,
                                        gpointer user_data);

   EBook *  e_load_book_source_finish  (ESource *source,
                                        GAsyncResult *result,
                                        GError **error);

This also eliminates the thread for loading EBooks from ENameSelector.
configure.ac
docs/reference/libedataserverui/libedataserverui-sections.txt
docs/reference/libedataserverui/tmpl/e-book-auth-util.sgml
libedataserverui/e-book-auth-util.c
libedataserverui/e-book-auth-util.h
libedataserverui/e-name-selector-dialog.c
libedataserverui/e-name-selector-entry.c
libedataserverui/e-name-selector.c