[next] telepathy-glib: textchan-group: improve debug
Simon McVittie
smcv at kemper.freedesktop.org
Thu Mar 13 07:08:34 PDT 2014
Module: telepathy-glib
Branch: next
Commit: d1bb86854d2097687a132786caa24643e0bc59e1
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=d1bb86854d2097687a132786caa24643e0bc59e1
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Mar 10 14:24:21 2014 +0000
textchan-group: improve debug
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76000
Reviewed-by: Guillaume Desmottes
---
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 <telepathy-glib/telepathy-glib.h>
#include <telepathy-glib/telepathy-glib-dbus.h>
+#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
More information about the telepathy-commits
mailing list