[next] telepathy-glib: simple-channel-dispatch-operation: use the ' invisible' TpDBusPropertiesMixin API
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Fri May 16 06:28:32 PDT 2014
Module: telepathy-glib
Branch: next
Commit: db3bbef894710cb7462aa44bcc96ed0fafd0e744
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=db3bbef894710cb7462aa44bcc96ed0fafd0e744
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri May 16 13:59:43 2014 +0200
simple-channel-dispatch-operation: use the 'invisible' TpDBusPropertiesMixin API
https://bugs.freedesktop.org/show_bug.cgi?id=78376
---
tests/lib/simple-channel-dispatch-operation.c | 16 ++++------------
tests/lib/simple-channel-dispatch-operation.h | 1 -
2 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/tests/lib/simple-channel-dispatch-operation.c b/tests/lib/simple-channel-dispatch-operation.c
index b09a48d..dd74fa3 100644
--- a/tests/lib/simple-channel-dispatch-operation.c
+++ b/tests/lib/simple-channel-dispatch-operation.c
@@ -183,15 +183,6 @@ tp_tests_simple_channel_dispatch_operation_class_init (TpTestsSimpleChannelDispa
{ NULL }
};
- static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
- { TP_IFACE_CHANNEL_DISPATCH_OPERATION,
- tp_dbus_properties_mixin_getter_gobject_properties,
- NULL,
- a_props
- },
- { NULL },
- };
-
g_type_class_add_private (klass, sizeof (TpTestsSimpleChannelDispatchOperationPrivate));
object_class->get_property = tp_tests_simple_channel_dispatch_operation_get_property;
object_class->finalize = tp_tests_simple_channel_dispatch_operation_finalize;
@@ -234,9 +225,10 @@ tp_tests_simple_channel_dispatch_operation_class_init (TpTestsSimpleChannelDispa
g_object_class_install_property (object_class, PROP_POSSIBLE_HANDLERS,
param_spec);
- klass->dbus_props_class.interfaces = prop_interfaces;
- tp_dbus_properties_mixin_class_init (object_class,
- G_STRUCT_OFFSET (TpTestsSimpleChannelDispatchOperationClass, dbus_props_class));
+ tp_dbus_properties_mixin_class_init (object_class, 0);
+ tp_dbus_properties_mixin_implement_interface (object_class,
+ TP_IFACE_QUARK_CHANNEL_DISPATCH_OPERATION,
+ tp_dbus_properties_mixin_getter_gobject_properties, NULL, a_props);
}
void
diff --git a/tests/lib/simple-channel-dispatch-operation.h b/tests/lib/simple-channel-dispatch-operation.h
index c5ef51a..c6949d7 100644
--- a/tests/lib/simple-channel-dispatch-operation.h
+++ b/tests/lib/simple-channel-dispatch-operation.h
@@ -25,7 +25,6 @@ typedef struct _SimpleChannelDispatchOperationPrivate TpTestsSimpleChannelDispat
struct _SimpleChannelDispatchOperationClass {
GObjectClass parent_class;
- TpDBusPropertiesMixinClass dbus_props_class;
};
struct _SimpleChannelDispatchOperation {
More information about the telepathy-commits
mailing list