From 86f7e6a4e0006d2bc4d82b081d18c2aa1953f402 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 28 Oct 2013 14:13:30 +0000 Subject: [PATCH 12/15] Emit a new TpProtocol's immutable properties as debug messages --- telepathy-glib/protocol.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c index 9b23aab..1421327 100644 --- a/telepathy-glib/protocol.c +++ b/telepathy-glib/protocol.c @@ -512,7 +512,21 @@ tp_protocol_constructed (GObject *object) } else { + GHashTableIter iter; + gpointer k, v; + DEBUG ("immutable properties already supplied"); + + g_hash_table_iter_init (&iter, self->priv->protocol_properties); + + while (g_hash_table_iter_next (&iter, &k, &v)) + { + gchar *printed; + + printed = g_strdup_value_contents (v); + DEBUG ("%s = %s", (const gchar *) k, printed); + g_free (printed); + } } self->priv->protocol_struct.params = tp_protocol_params_from_param_specs ( -- 1.8.4.rc3