diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-31 23:22:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-31 23:22:54 +0800 |
commit | 800a5828e5bf36520d0d423612049a64c2e9f111 (patch) | |
tree | 726eaf23da1cdf840c0333ea6ea4b0b4d44549a1 /libemail-engine/e-mail-session.c | |
parent | 9f07dc68f8ec2e8d9d48c7a13f4edf74304d870d (diff) | |
download | gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar.gz gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar.bz2 gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar.lz gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar.xz gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.tar.zst gsoc2013-evolution-800a5828e5bf36520d0d423612049a64c2e9f111.zip |
Move CamelSaslXOAuth2 to libemail-engine.
This now uses e_source_get_oauth2_access_token_sync() instead of talking
directly to GNOME Online Accounts and therefore no longer has to live in
the "online-accounts" module.
The "online-accounts" module will be removed in Evolution 3.9.1, when we
can require GNOME Online Accounts 3.8. Evolution 3.8 will still support
older versions of GNOME Online Accounts, which use OAuth 1.0a tokens for
Google authentication.
Diffstat (limited to 'libemail-engine/e-mail-session.c')
-rw-r--r-- | libemail-engine/e-mail-session.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c index 30a83d4230..b195238145 100644 --- a/libemail-engine/e-mail-session.c +++ b/libemail-engine/e-mail-session.c @@ -51,6 +51,9 @@ /* This is our hack, not part of libcamel. */ #include "camel-null-store.h" +/* This too, though it's less of a hack. */ +#include "camel-sasl-xoauth2.h" + #include "e-mail-authenticator.h" #include "e-mail-junk-filter.h" #include "e-mail-session.h" @@ -1963,6 +1966,9 @@ e_mail_session_class_init (EMailSessionClass *class) /* Make sure ESourceCamel picks up the "none" provider. */ e_source_camel_generate_subtype ("none", CAMEL_TYPE_SETTINGS); + + /* Make sure CamelSasl picks up the XOAUTH2 mechanism. */ + g_type_ensure (CAMEL_TYPE_SASL_XOAUTH2); } static void |