aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-activity.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-01-01 03:38:29 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-01-01 03:40:06 +0800
commita7abe3ac594dd3324f473b8200641e03cf64f774 (patch)
tree1d6b85f75ba41b08e87f0ccc3d7de4fd43fe7720 /composer/e-composer-activity.c
parent2c9b8c191d7ccf82c4d0c6df4c5acbe11cfa8701 (diff)
downloadgsoc2013-evolution-a7abe3ac594dd3324f473b8200641e03cf64f774.tar.gz
gsoc2013-evolution-a7abe3ac594dd3324f473b8200641e03cf64f774.tar.zst
gsoc2013-evolution-a7abe3ac594dd3324f473b8200641e03cf64f774.zip
Composer cleanups.
Diffstat (limited to 'composer/e-composer-activity.c')
-rw-r--r--composer/e-composer-activity.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/composer/e-composer-activity.c b/composer/e-composer-activity.c
index ee46d9b6b0..603a271580 100644
--- a/composer/e-composer-activity.c
+++ b/composer/e-composer-activity.c
@@ -22,6 +22,10 @@
#include "e-composer-private.h"
+#define E_COMPOSER_ACTIVITY_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE \
+ ((obj), E_TYPE_COMPOSER_ACTIVITY, EComposerActivityPrivate))
+
struct _EComposerActivityPrivate {
EMsgComposer *composer;
gboolean saved_editable;
@@ -164,8 +168,7 @@ e_composer_activity_class_init (EComposerActivityClass *class)
static void
e_composer_activity_init (EComposerActivity *activity)
{
- activity->priv = G_TYPE_INSTANCE_GET_PRIVATE (
- activity, E_TYPE_COMPOSER_ACTIVITY, EComposerActivityPrivate);
+ activity->priv = E_COMPOSER_ACTIVITY_GET_PRIVATE (activity);
}
EActivity *