aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-tab.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-tab.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-tab.c')
-rw-r--r--mail/e-mail-tab.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mail/e-mail-tab.c b/mail/e-mail-tab.c
index cbbe8a83f6..aefe49f1df 100644
--- a/mail/e-mail-tab.c
+++ b/mail/e-mail-tab.c
@@ -35,9 +35,6 @@ G_DEFINE_TYPE_WITH_CODE (EMailTab,
G_IMPLEMENT_INTERFACE (MX_TYPE_DRAGGABLE,
mx_draggable_iface_init))
-#define TAB_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), E_MAIL_TYPE_TAB, EMailTabPrivate))
-
enum
{
PROP_0,
@@ -1310,7 +1307,7 @@ e_mail_tab_init (EMailTab *self)
ClutterActor *text;
GtkSettings *settings;
- EMailTabPrivate *priv = self->priv = TAB_PRIVATE (self);
+ EMailTabPrivate *priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, E_MAIL_TYPE_TAB, EMailTabPrivate);
priv->width = -1;
priv->anim_length = 200;