diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-22 18:44:15 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-22 18:44:15 -0500 |
commit | 2fc6dc7fe60e1ea689557d464f45ceea2119cd73 (patch) | |
tree | 19030a7503d9edb53b5ec1cd1e9c2d537c7c2ebf /tests/dbus/test-tpl-log-store-xml.c | |
parent | b24f7974e6afb33e03b986339fab4595b07e4419 (diff) |
Make TplEntity constructors public
Implement a generic constructor along with making public all TplEntity
constructors. This is required now that the LogManager API require
TplEntity object instead of id/is_room pair.
Diffstat (limited to 'tests/dbus/test-tpl-log-store-xml.c')
-rw-r--r-- | tests/dbus/test-tpl-log-store-xml.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c index 5069ecd..7090584 100644 --- a/tests/dbus/test-tpl-log-store-xml.c +++ b/tests/dbus/test-tpl-log-store-xml.c @@ -207,15 +207,10 @@ test_clear_entity (XmlTestCaseFixture *fixture, g_assert (account != NULL); if (is_room) - entity = g_object_new (TPL_TYPE_ENTITY, - "type", TPL_ENTITY_ROOM, - "identifier", "meego@conference.collabora.co.uk", - NULL); + entity = tpl_entity_new_from_room_id ("meego@conference.collabora.co.uk"); else - entity = g_object_new (TPL_TYPE_ENTITY, - "type", TPL_ENTITY_CONTACT, - "identifier", "derek.foreman@collabora.co.uk", - NULL); + entity = tpl_entity_new ("derek.foreman@collabora.co.uk", + TPL_ENTITY_CONTACT, NULL, NULL); _tpl_log_store_clear_entity (TPL_LOG_STORE (fixture->store), account, entity); g_object_unref (account); |