diff options
Diffstat (limited to 'composer/e-composer-post-header.c')
-rw-r--r-- | composer/e-composer-post-header.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/composer/e-composer-post-header.c b/composer/e-composer-post-header.c index fd08c67d64..a2a4f4893f 100644 --- a/composer/e-composer-post-header.c +++ b/composer/e-composer-post-header.c @@ -28,6 +28,10 @@ #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 +176,7 @@ composer_post_header_dispose (GObject *object) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER (object)->priv; + priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (object); if (priv->account != NULL) { g_object_unref (priv->account); @@ -188,7 +192,7 @@ composer_post_header_finalize (GObject *object) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER (object)->priv; + priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (object); g_free (priv->base_url); @@ -201,7 +205,7 @@ composer_post_header_changed (EComposerHeader *header) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER (header)->priv; + priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); priv->custom = TRUE; } @@ -211,7 +215,7 @@ composer_post_header_clicked (EComposerHeader *header) { EComposerPostHeaderPrivate *priv; - priv = E_COMPOSER_POST_HEADER (header)->priv; + priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); priv->custom = FALSE; } @@ -249,9 +253,7 @@ e_composer_post_header_class_init (EComposerPostHeaderClass *class) static void e_composer_post_header_init (EComposerPostHeader *header) { - header->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - header, E_TYPE_COMPOSER_POST_HEADER, - EComposerPostHeaderPrivate); + header->priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (header); } EComposerHeader * |