[evolution-data-server/openismus-work] EBookBackendFile: Updated to use ESourceRevisionGuards instead of ESourceAddressBookConfig.



commit c82a15aecf18ce4737f907750c3fbdfd7874eea2
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Tue Jan 29 16:57:25 2013 +0900

    EBookBackendFile: Updated to use ESourceRevisionGuards instead of ESourceAddressBookConfig.

 addressbook/backends/file/e-book-backend-file.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index 0ad3008..89e51b7 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -1317,7 +1317,7 @@ e_book_backend_file_open (EBookBackendSync *backend,
 	GError           *local_error = NULL;
 	gboolean          populated;
 	ESourceBackendSummarySetup *setup;
-	ESourceAddressBookConfig *config;
+	ESourceRevisionGuards *guards;
 
 	source = e_backend_get_source (E_BACKEND (backend));
 	registry = e_book_backend_get_registry (E_BOOK_BACKEND (backend));
@@ -1331,11 +1331,11 @@ e_book_backend_file_open (EBookBackendSync *backend,
 	filename = g_build_filename (dirname, "addressbook.db", NULL);
 	backup   = g_build_filename (dirname, "addressbook.db.old", NULL);
 
-	REGISTER_TYPE (E_TYPE_SOURCE_ADDRESS_BOOK_CONFIG);
+	REGISTER_TYPE (E_TYPE_SOURCE_REVISION_GUARDS);
 	REGISTER_TYPE (E_TYPE_SOURCE_BACKEND_SUMMARY_SETUP);
 
-	config         = e_source_get_extension (source, E_SOURCE_EXTENSION_ADDRESS_BOOK_CONFIG);
-	bf->priv->revision_guards = e_source_address_book_config_get_revision_guards_enabled (config);
+	guards         = e_source_get_extension (source, E_SOURCE_EXTENSION_REVISION_GUARDS);
+	bf->priv->revision_guards = e_source_revision_guards_get_enabled (guards);
 
 	setup = e_source_get_extension (source, E_SOURCE_EXTENSION_BACKEND_SUMMARY_SETUP);
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]