From 1552d584ccfe953bef3be4977ce41d357980a9c1 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 10 Mar 2014 14:24:21 +0000 Subject: [PATCH 01/23] textchan-group: improve debug --- tests/lib/textchan-group.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/lib/textchan-group.c b/tests/lib/textchan-group.c index fedb002..f955240 100644 --- a/tests/lib/textchan-group.c +++ b/tests/lib/textchan-group.c @@ -16,6 +16,8 @@ #include #include +#include "tests/lib/debug.h" + static void password_iface_init (gpointer iface, gpointer data); G_DEFINE_TYPE_WITH_CODE (TpTestsTextChannelGroup, @@ -97,9 +99,14 @@ remove_with_reason (GObject *obj, /* User wants to leave */ if (!self->priv->closed) { + DEBUG ("closed"); self->priv->closed = TRUE; tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } return TRUE; } @@ -179,8 +186,13 @@ dispose (GObject *object) if (!self->priv->closed) { + DEBUG ("closed"); tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } ((GObjectClass *) tp_tests_text_channel_group_parent_class)->dispose (object); } @@ -205,9 +217,14 @@ channel_close (TpBaseChannel *base) if (!self->priv->closed) { + DEBUG ("closed"); self->priv->closed = TRUE; tp_svc_channel_emit_closed (self); } + else + { + DEBUG ("already closed"); + } } static void -- 1.9.0