aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-08 07:08:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-08 07:12:29 +0800
commit77645577f5594d68e1a6d67d3a2edcf860a5f591 (patch)
treef0b9d4d120191bad0bb9104c3677ec44436bc244 /libemail-engine
parente0f11ae8eb198a8e153bbe9dbaf8290da1da7836 (diff)
downloadgsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar.gz
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar.bz2
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar.lz
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar.xz
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.tar.zst
gsoc2013-evolution-77645577f5594d68e1a6d67d3a2edcf860a5f591.zip
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.
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/camel-null-store.c5
1 files changed, 5 insertions, 0 deletions
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