[next] telepathy-haze: tp_base_connection_disconnect_with_dbus_error now takes a GVariant

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Feb 27 07:03:24 PST 2014


Module: telepathy-haze
Branch: next
Commit: b32883690d404ac1aa0fa1865381cad074d87546
URL:    http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=b32883690d404ac1aa0fa1865381cad074d87546

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Fri Feb 21 17:26:05 2014 +0100

tp_base_connection_disconnect_with_dbus_error now takes a GVariant

---

 src/connection.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 20284e5..97029f5 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -335,7 +335,7 @@ haze_report_disconnect_reason (PurpleConnection *gc,
   HazeConnection *conn = ACCOUNT_GET_HAZE_CONNECTION (account);
   HazeConnectionPrivate *priv = conn->priv;
   TpBaseConnection *base_conn = ACCOUNT_GET_TP_BASE_CONNECTION (account);
-  GHashTable *details;
+  GVariant *details;
   TpConnectionStatusReason tp_reason;
   const gchar *tp_error_name;
 
@@ -348,10 +348,11 @@ haze_report_disconnect_reason (PurpleConnection *gc,
       (tp_base_connection_get_status (base_conn) ==
          TP_CONNECTION_STATUS_CONNECTING),
       &tp_reason, &tp_error_name);
-  details = tp_asv_new ("debug-message", G_TYPE_STRING, text, NULL);
+
+  details = g_variant_new_parsed ("{ 'debug-message': <%s> }", text);
+
   tp_base_connection_disconnect_with_dbus_error (base_conn, tp_error_name,
       details, tp_reason);
-  g_hash_table_unref (details);
 }
 
 static gboolean



More information about the telepathy-commits mailing list