diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-25 23:20:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-02-25 23:20:41 +0800 |
commit | 1301cf02efdacd20fb5ce3e2554ae15b8f146e8a (patch) | |
tree | 8d5f3985a82ec7d330af27ee0a29a79a2f0ecfa3 /mail/e-mail-session.c | |
parent | 1a4be6c521d674c4a60e54203521e2721b81b921 (diff) | |
download | gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.gz gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.zst gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.zip |
Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index a9b12b02ce..4f78be0d90 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -64,10 +64,6 @@ #include "mail-send-recv.h" #include "mail-tools.h" -#define E_MAIL_SESSION_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_MAIL_SESSION, EMailSessionPrivate)) - static guint session_check_junk_notify_id; static guint session_gconf_proxy_id; @@ -556,7 +552,7 @@ mail_session_dispose (GObject *object) { EMailSessionPrivate *priv; - priv = E_MAIL_SESSION_GET_PRIVATE (object); + priv = E_MAIL_SESSION (object)->priv; if (priv->folder_cache != NULL) { g_object_unref (priv->folder_cache); @@ -1001,7 +997,7 @@ e_mail_session_init (EMailSession *session) { GConfClient *client; - session->priv = E_MAIL_SESSION_GET_PRIVATE (session); + session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, E_TYPE_MAIL_SESSION, EMailSessionPrivate); session->priv->folder_cache = mail_folder_cache_new (); /* Initialize the EAccount setup. */ |