[Pkg-telepathy-commits] [telepathy-glib-1] 135/212: TpTestsSimpleAccount: Stop using tp_svc_dbus_properties_*()

Simon McVittie smcv at debian.org
Wed May 14 12:09:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-glib-1.

commit 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-glib-1.git



More information about the Pkg-telepathy-commits mailing list