aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-21 23:33:26 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 00:27:59 +0800
commit0d4c1f6c049f0f08f7f323b7d8924783e0b1f608 (patch)
tree23b0ab0583bd78182520297e0d0e297454d51a7a
parent96445f9768c9dee5e375522aa3bb3a9a01df7280 (diff)
downloadgsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar.gz
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar.bz2
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar.lz
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar.xz
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.tar.zst
gsoc2013-empathy-0d4c1f6c049f0f08f7f323b7d8924783e0b1f608.zip
Correct usage of priv
-rw-r--r--libempathy/empathy-connection-managers.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libempathy/empathy-connection-managers.c b/libempathy/empathy-connection-managers.c
index 2ccfb9052..6a87a3fa5 100644
--- a/libempathy/empathy-connection-managers.c
+++ b/libempathy/empathy-connection-managers.c
@@ -67,15 +67,14 @@ struct _EmpathyConnectionManagersPriv
TpDBusDaemon *dbus;
};
-#define EMPATHY_CONNECTION_MANAGERS_GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
- EMPATHY_TYPE_CONNECTION_MANAGERS, EmpathyConnectionManagersPriv))
-
static void
empathy_connection_managers_init (EmpathyConnectionManagers *obj)
{
EmpathyConnectionManagersPriv *priv =
- EMPATHY_CONNECTION_MANAGERS_GET_PRIVATE (obj);
+ G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
+ EMPATHY_TYPE_CONNECTION_MANAGERS, EmpathyConnectionManagersPriv);
+
+ obj->priv = priv;
priv->dbus = tp_dbus_daemon_dup (NULL);
g_assert (priv->dbus != NULL);