EBookBackendFile: Implement GInitable.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 4 Feb 2013 17:22:44 +0000 (12:22 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 4 Feb 2013 17:41:12 +0000 (12:41 -0500)
commit01857aacc17e0da2766d6c03b3f84efb0cf1392d
treea490f3cf1f07bf5920568225bab4b408e475185c
parenta212bb30204204f641c0afa5ac1aa6e60baaeaaf
EBookBackendFile: Implement GInitable.

Migrate the old BDB database and open the SQLite database in the
GInitable.init() method.  If an error occurs here, the backend instance
is destroyed immediately and the OpenAddressBook() factory method fails.

This obviates the need to check for an open SQLite handle in every
backend method.
addressbook/backends/file/e-book-backend-file.c