diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-21 17:24:50 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-21 17:24:50 +0100 |
commit | 3c3a313037b931c1ff43c27776cab0b279bab5d7 (patch) | |
tree | e59850be91c06e4d4bba5c7140b924224eb58077 | |
parent | a15e79348eefcb324c9c7135d642ca1ed0b2c573 (diff) |
tp_base_connection_disconnect_with_dbus_error now takes a GVariant
-rw-r--r-- | src/idle-connection.c | 4 |
1 files 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); } } |