[empathy/next] tls-test: use the 'invisible' TpDBusPropertiesMixin API



commit a1f7763fc359f3de21a14b616cf9423cf2944d7d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri May 16 15:27:21 2014 +0200

    tls-test: use the 'invisible' TpDBusPropertiesMixin API
    
    https://bugs.freedesktop.org/show_bug.cgi?id=78376

 tests/empathy-tls-test.c |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/tests/empathy-tls-test.c b/tests/empathy-tls-test.c
index 5d5c13a..d75e629 100644
--- a/tests/empathy-tls-test.c
+++ b/tests/empathy-tls-test.c
@@ -112,15 +112,6 @@ mock_tls_certificate_class_init (MockTLSCertificateClass *klass)
           { NULL }
   };
 
-  static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
-    { TP_IFACE_AUTHENTICATION_TLS_CERTIFICATE,
-      tp_dbus_properties_mixin_getter_gobject_properties,
-      NULL,
-      object_props,
-    },
-    { NULL }
-  };
-
   oclass->get_property = mock_tls_certificate_get_property;
   oclass->finalize = mock_tls_certificate_finalize;
 
@@ -153,9 +144,12 @@ mock_tls_certificate_class_init (MockTLSCertificateClass *klass)
       G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
   g_object_class_install_property (oclass, PROP_CERTIFICATE_CHAIN_DATA, pspec);
 
-  klass->dbus_props_class.interfaces = prop_interfaces;
-  tp_dbus_properties_mixin_class_init (oclass,
-      G_STRUCT_OFFSET (MockTLSCertificateClass, dbus_props_class));
+  tp_dbus_properties_mixin_class_init (oclass, 0);
+
+  tp_dbus_properties_mixin_implement_interface (oclass,
+      TP_IFACE_QUARK_AUTHENTICATION_TLS_CERTIFICATE,
+      tp_dbus_properties_mixin_getter_gobject_properties,
+      NULL, object_props);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]