[next] telepathy-idle: IdleConnection: correctly chain up constructed()

Simon McVittie smcv at kemper.freedesktop.org
Wed May 7 02:18:31 PDT 2014


Module: telepathy-idle
Branch: next
Commit: 531bae905c7bb6ea3f8f195e66d2fd75c9359060
URL:    http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=531bae905c7bb6ea3f8f195e66d2fd75c9359060

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Apr 22 15:19:56 2014 +0100

IdleConnection: correctly chain up constructed()

Previously, this was theoretically-broken but harmless. Now that
TpBaseConnection has a non-trivial constructed(), we really
need to get this right.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77189

---

 src/idle-connection.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/idle-connection.c b/src/idle-connection.c
index deeb149..b1c3b1d 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -247,8 +247,12 @@ static void idle_connection_init(IdleConnection *obj) {
 static void
 idle_connection_constructed (GObject *object)
 {
+  void (*chain_up) (GObject *) =
+      G_OBJECT_CLASS (idle_connection_parent_class)->constructed;
   IdleConnection *self = IDLE_CONNECTION (object);
 
+  chain_up (object);
+
   self->parser = g_object_new (IDLE_TYPE_PARSER, "connection", self, NULL);
   idle_contact_info_init (self);
 }



More information about the telepathy-commits mailing list