[next] telepathy-glib: simple-account-manager: 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: 27102990523d9966932017a364e5a332dc0e9103
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=27102990523d9966932017a364e5a332dc0e9103
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri May 16 13:59:43 2014 +0200
simple-account-manager: use the 'invisible' TpDBusPropertiesMixin API
https://bugs.freedesktop.org/show_bug.cgi?id=78376
---
tests/lib/simple-account-manager.c | 16 ++++------------
tests/lib/simple-account-manager.h | 1 -
2 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/tests/lib/simple-account-manager.c b/tests/lib/simple-account-manager.c
index 7b01e06..0bc9d66 100644
--- a/tests/lib/simple-account-manager.c
+++ b/tests/lib/simple-account-manager.c
@@ -162,15 +162,6 @@ tp_tests_simple_account_manager_class_init (
{ NULL }
};
- static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
- { TP_IFACE_ACCOUNT_MANAGER,
- tp_dbus_properties_mixin_getter_gobject_properties,
- NULL,
- am_props
- },
- { NULL },
- };
-
g_type_class_add_private (klass, sizeof (TpTestsSimpleAccountManagerPrivate));
object_class->finalize = tp_tests_simple_account_manager_finalize;
object_class->get_property = tp_tests_simple_account_manager_get_property;
@@ -191,9 +182,10 @@ tp_tests_simple_account_manager_class_init (
G_PARAM_READABLE);
g_object_class_install_property (object_class, PROP_UNUSABLE_ACCOUNTS, param_spec);
- klass->dbus_props_class.interfaces = prop_interfaces;
- tp_dbus_properties_mixin_class_init (object_class,
- G_STRUCT_OFFSET (TpTestsSimpleAccountManagerClass, dbus_props_class));
+ tp_dbus_properties_mixin_class_init (object_class, 0);
+ tp_dbus_properties_mixin_implement_interface (object_class,
+ TP_IFACE_QUARK_ACCOUNT_MANAGER,
+ tp_dbus_properties_mixin_getter_gobject_properties, NULL, am_props);
}
static void
diff --git a/tests/lib/simple-account-manager.h b/tests/lib/simple-account-manager.h
index 0ed114d..778e11b 100644
--- a/tests/lib/simple-account-manager.h
+++ b/tests/lib/simple-account-manager.h
@@ -24,7 +24,6 @@ typedef struct _TpTestsSimpleAccountManagerPrivate TpTestsSimpleAccountManagerPr
struct _TpTestsSimpleAccountManagerClass {
GObjectClass parent_class;
- TpDBusPropertiesMixinClass dbus_props_class;
};
struct _TpTestsSimpleAccountManager {
More information about the telepathy-commits
mailing list