[evolution-data-server/openismus-work] Remove g_type_ensure()



commit 5f2c871ae88ad0111f0abb465952be285effe27a
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Jan 25 20:07:38 2013 +0900

    Remove g_type_ensure()
    
    Should be the last touch to again compile against glib 2.32.

 tests/libebook/client/test-client-custom-summary.c |    2 +-
 .../client/test-client-upgrade-addressbook.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c b/tests/libebook/client/test-client-custom-summary.c
index dc0abd0..b13e398 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -52,7 +52,7 @@ setup_custom_book (ESource            *scratch,
 {
 	ESourceBackendSummarySetup *setup;
 
-	g_type_ensure (E_TYPE_SOURCE_BACKEND_SUMMARY_SETUP);
+	g_type_class_unref (g_type_class_ref (E_TYPE_SOURCE_BACKEND_SUMMARY_SETUP));
 	setup = e_source_get_extension (scratch, E_SOURCE_EXTENSION_BACKEND_SUMMARY_SETUP);
 	e_source_backend_summary_setup_set_summary_fields (setup,
 							   E_CONTACT_FULL_NAME,
diff --git a/tests/libebook/client/test-client-upgrade-addressbook.c b/tests/libebook/client/test-client-upgrade-addressbook.c
index 4e585d0..fa21516 100644
--- a/tests/libebook/client/test-client-upgrade-addressbook.c
+++ b/tests/libebook/client/test-client-upgrade-addressbook.c
@@ -338,7 +338,7 @@ setup_old_default_summary (ESource            *scratch,
 {
 	ESourceBackendSummarySetup *setup;
 
-	g_type_ensure (E_TYPE_SOURCE_BACKEND_SUMMARY_SETUP);
+	g_type_class_unref (g_type_class_ref (E_TYPE_SOURCE_BACKEND_SUMMARY_SETUP));
 	setup = e_source_get_extension (scratch, E_SOURCE_EXTENSION_BACKEND_SUMMARY_SETUP);
 	e_source_backend_summary_setup_set_summary_fields (setup,
 	                                                   E_CONTACT_UID,



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