[next] telepathy-glib: TpTestsSimpleAccount: Stop using tp_svc_dbus_properties_*()

Simon McVittie smcv at kemper.freedesktop.org
Tue Apr 8 12:11:44 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 5baa0d00b7fb6104b62007f4374a7fc5b9ebd787
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=5baa0d00b7fb6104b62007f4374a7fc5b9ebd787

Author: Xavier Claessens <xavier.claessens at collabora.com>
Date:   Sat Apr  5 09:56:54 2014 -0400

TpTestsSimpleAccount: Stop using tp_svc_dbus_properties_*()

We are about to stop exporting TpSvcDBusProperties iface so they
would be no-op.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77144
Reviewed-by: Simon McVittie

---

 tests/lib/simple-account.c |   16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/tests/lib/simple-account.c b/tests/lib/simple-account.c
index 7f0d568..30ac444 100644
--- a/tests/lib/simple-account.c
+++ b/tests/lib/simple-account.c
@@ -704,22 +704,10 @@ void
 tp_tests_simple_account_add_uri_scheme (TpTestsSimpleAccount *self,
     const gchar *uri_scheme)
 {
-  GHashTable *changed;
-  GStrv schemes;
-
   g_ptr_array_add (self->priv->uri_schemes, g_strdup (uri_scheme));
 
-  g_object_get (self, "uri-schemes", &schemes, NULL);
-
-  changed = tp_asv_new (
-      "URISchemes", G_TYPE_STRV, schemes,
-      NULL);
-
-  tp_svc_dbus_properties_emit_properties_changed (self,
-      TP_IFACE_ACCOUNT_INTERFACE_ADDRESSING1, changed, NULL);
-
-  g_strfreev (schemes);
-  g_hash_table_unref (changed);
+  tp_dbus_properties_mixin_emit_properties_changed_varargs (G_OBJECT (self),
+      TP_IFACE_ACCOUNT_INTERFACE_ADDRESSING1, "URISchemes", NULL);
 }
 
 void



More information about the telepathy-commits mailing list