diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-10-28 14:13:30 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-11 16:49:25 +0000 |
commit | df8c7546c913398d072c76d5aaf9fc4a00a93b4f (patch) | |
tree | 5ad4942fac21bf19bed02bd5e8d80f66c1aa39e8 /telepathy-glib | |
parent | c73bd6a29e23bdc7afa8a26be0fd6ade0065c03a (diff) |
Emit a new TpProtocol's immutable properties as debug messages
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'telepathy-glib')
-rw-r--r-- | telepathy-glib/protocol.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c index 9b23aab27..14213273b 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 ( |