[next] telepathy-idle: tp_base_connection_disconnect_with_dbus_error now takes a GVariant
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Thu Feb 27 06:56:58 PST 2014
Module: telepathy-idle
Branch: next
Commit: 3c3a313037b931c1ff43c27776cab0b279bab5d7
URL: http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=3c3a313037b931c1ff43c27776cab0b279bab5d7
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri Feb 21 17:24:50 2014 +0100
tp_base_connection_disconnect_with_dbus_error now takes a GVariant
---
src/idle-connection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/idle-connection.c b/src/idle-connection.c
index ee0d73a..323d19e 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -637,7 +637,8 @@ static void _connection_disconnect_with_gerror(IdleConnection *conn, TpConnectio
if (tp_base_connection_get_status (TP_BASE_CONNECTION (conn)) == TP_CONNECTION_STATUS_DISCONNECTED) {
IDLE_DEBUG ("Already disconnected; refusing to report error %s", error->message);
} else {
- GHashTable *details = tp_asv_new(key, G_TYPE_STRING, error->message, NULL);
+ GVariant *details = g_variant_new_parsed (
+ "{ '%s': <%s> }", key, error->message);
g_assert(error->domain == TP_ERROR);
@@ -645,7 +646,6 @@ static void _connection_disconnect_with_gerror(IdleConnection *conn, TpConnectio
tp_error_get_dbus_name(error->code),
details,
reason);
- g_hash_table_unref(details);
}
}
More information about the telepathy-commits
mailing list