[evolution] CamelNullStoreClass: Override settings_type.



commit 77645577f5594d68e1a6d67d3a2edcf860a5f591
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jun 7 19:08:13 2012 -0400

    CamelNullStoreClass: Override settings_type.
    
    CamelStoreClass bumps the settings_type to CAMEL_TYPE_STORE_SETTINGS,
    which has a filter-inbox property.  But we don't want ANY settings in
    a CamelNullStore, so revert the settings_type to CAMEL_TYPE_SETTINGS.

 libemail-engine/camel-null-store.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libemail-engine/camel-null-store.c b/libemail-engine/camel-null-store.c
index a4ebb53..a3b54be 100644
--- a/libemail-engine/camel-null-store.c
+++ b/libemail-engine/camel-null-store.c
@@ -47,11 +47,16 @@ static CamelProvider null_provider = {
 static void
 camel_null_store_class_init (CamelNullStoreClass *class)
 {
+	CamelServiceClass *service_class;
+
 	/* We should never be invoking methods on a CamelNullStore,
 	 * but thankfully, in case we do, CamelStore has NULL function
 	 * pointer checks in all of its wrapper functions.  So it will
 	 * emit a runtime warning, which is what we want, and frees us
 	 * from having to override any class methods here. */
+
+	service_class = CAMEL_SERVICE_CLASS (class);
+	service_class->settings_type = CAMEL_TYPE_SETTINGS;
 }
 
 static void



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