From befec1b4cf12fd4798696e529e9de03b7b202142 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 9 Feb 2012 15:42:07 +0000 Subject: [PATCH 5/7] TpContact: stop using about-to-be-deprecated Connection API Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45842 Signed-off-by: Simon McVittie --- telepathy-glib/contact.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c index 46c2826..5490122 100644 --- a/telepathy-glib/contact.c +++ b/telepathy-glib/contact.c @@ -4101,8 +4101,8 @@ contacts_context_remove_common_features (ContactsContext *context) /** * tp_connection_get_contacts_by_handle: - * @self: A connection, which must be ready (#TpConnection:connection-ready - * must be %TRUE) + * @self: A connection, which must have the %TP_CONNECTION_FEATURE_CONNECTED + * feature prepared * @n_handles: The number of handles in @handles (must be at least 1) * @handles: (array length=n_handles) (element-type uint): An array of handles * of type %TP_HANDLE_TYPE_CONTACT representing the desired contacts @@ -4223,8 +4223,8 @@ tp_connection_get_contacts_by_handle (TpConnection *self, /** * tp_connection_upgrade_contacts: - * @self: A connection, which must be ready (#TpConnection:connection-ready - * must be %TRUE) + * @self: A connection, which must have the %TP_CONNECTION_FEATURE_CONNECTED + * feature prepared * @n_contacts: The number of contacts in @contacts (must be at least 1) * @contacts: (array length=n_contacts): An array of #TpContact objects * associated with @self @@ -4265,8 +4265,8 @@ tp_connection_upgrade_contacts (TpConnection *self, ContactsContext *context; guint i; - g_return_if_fail (tp_connection_is_ready (self)); - g_return_if_fail (tp_proxy_get_invalidated (self) == NULL); + g_return_if_fail (tp_proxy_is_prepared (self, + TP_CONNECTION_FEATURE_CONNECTED)); g_return_if_fail (n_contacts >= 1); g_return_if_fail (contacts != NULL); g_return_if_fail (n_features == 0 || features != NULL); @@ -4436,8 +4436,8 @@ contacts_requested_handles (TpConnection *connection, /** * tp_connection_get_contacts_by_id: - * @self: A connection, which must be ready (#TpConnection:connection-ready - * must be %TRUE) + * @self: A connection, which must have the %TP_CONNECTION_FEATURE_CONNECTED + * feature prepared * @n_ids: The number of IDs in @ids (must be at least 1) * @ids: (array length=n_ids) (transfer none): An array of strings representing * the desired contacts by their @@ -4481,8 +4481,8 @@ tp_connection_get_contacts_by_id (TpConnection *self, ContactsContext *context; guint i; - g_return_if_fail (tp_connection_is_ready (self)); - g_return_if_fail (tp_proxy_get_invalidated (self) == NULL); + g_return_if_fail (tp_proxy_is_prepared (self, + TP_CONNECTION_FEATURE_CONNECTED)); g_return_if_fail (n_ids >= 1); g_return_if_fail (ids != NULL); g_return_if_fail (ids[0] != NULL); -- 1.7.9.1