aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
commit1301cf02efdacd20fb5ce3e2554ae15b8f146e8a (patch)
tree8d5f3985a82ec7d330af27ee0a29a79a2f0ecfa3 /mail/e-mail-view.c
parent1a4be6c521d674c4a60e54203521e2721b81b921 (diff)
downloadgsoc2013-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-view.c')
-rw-r--r--mail/e-mail-view.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mail/e-mail-view.c b/mail/e-mail-view.c
index 62e0b0c733..0db537bd02 100644
--- a/mail/e-mail-view.c
+++ b/mail/e-mail-view.c
@@ -28,10 +28,6 @@
#include <glib/gi18n-lib.h>
-#define E_MAIL_VIEW_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_MAIL_VIEW, EMailViewPrivate))
-
struct _EMailViewPrivate {
EShellView *shell_view;
GtkOrientation orientation;
@@ -158,7 +154,7 @@ mail_view_dispose (GObject *object)
{
EMailViewPrivate *priv;
- priv = E_MAIL_VIEW_GET_PRIVATE (object);
+ priv = E_MAIL_VIEW (object)->priv;
if (priv->shell_view != NULL) {
g_object_unref (priv->shell_view);
@@ -323,7 +319,7 @@ e_mail_view_class_init (EMailViewClass *class)
static void
e_mail_view_init (EMailView *view)
{
- view->priv = E_MAIL_VIEW_GET_PRIVATE (view);
+ view->priv = G_TYPE_INSTANCE_GET_PRIVATE (view, E_TYPE_MAIL_VIEW, EMailViewPrivate);
}
EShellView *