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 /composer/e-composer-post-header.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 'composer/e-composer-post-header.c')
-rw-r--r-- | composer/e-composer-post-header.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/composer/e-composer-post-header.c b/composer/e-composer-post-header.c index be7e57727e..49611d29f8 100644 --- a/composer/e-composer-post-header.c +++ b/composer/e-composer-post-header.c @@ -24,10 +24,6 @@ #include <glib/gi18n.h> #include <camel/camel.h> -#define E_COMPOSER_POST_HEADER_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_COMPOSER_POST_HEADER, EComposerPostHeaderPrivate)) - enum { PROP_0, PROP_ACCOUNT @@ -172,7 +168,7 @@ composer_post_header_dispose (GObject *object) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (object); + priv = E_COMPOSER_POST_HEADER (object)->priv; if (priv->account != NULL) { g_object_unref (priv->account); @@ -188,7 +184,7 @@ composer_post_header_finalize (GObject *object) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (object); + priv = E_COMPOSER_POST_HEADER (object)->priv; g_free (priv->base_url); @@ -201,7 +197,7 @@ composer_post_header_changed (EComposerHeader *header) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); + priv = E_COMPOSER_POST_HEADER (header)->priv; priv->custom = TRUE; } @@ -211,7 +207,7 @@ composer_post_header_clicked (EComposerHeader *header) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); + priv = E_COMPOSER_POST_HEADER (header)->priv; priv->custom = FALSE; } @@ -249,7 +245,7 @@ e_composer_post_header_class_init (EComposerPostHeaderClass *class) static void e_composer_post_header_init (EComposerPostHeader *header) { - header->priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); + header->priv = G_TYPE_INSTANCE_GET_PRIVATE (header, E_TYPE_COMPOSER_POST_HEADER, EComposerPostHeaderPrivate); } EComposerHeader * |