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-activity.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-activity.c')
-rw-r--r-- | composer/e-composer-activity.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/composer/e-composer-activity.c b/composer/e-composer-activity.c index e0e159704c..f29834b24d 100644 --- a/composer/e-composer-activity.c +++ b/composer/e-composer-activity.c @@ -18,10 +18,6 @@ #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,7 +160,7 @@ e_composer_activity_class_init (EComposerActivityClass *class) static void e_composer_activity_init (EComposerActivity *activity) { - activity->priv = E_COMPOSER_ACTIVITY_GET_PRIVATE (activity); + activity->priv = G_TYPE_INSTANCE_GET_PRIVATE (activity, E_TYPE_COMPOSER_ACTIVITY, EComposerActivityPrivate); } EActivity * |