From 77645577f5594d68e1a6d67d3a2edcf860a5f591 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 7 Jun 2012 19:08:13 -0400 Subject: 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 file changed, 5 insertions(+) diff --git a/libemail-engine/camel-null-store.c b/libemail-engine/camel-null-store.c index a4ebb53e33..a3b54be86b 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 -- cgit v1.2.3