diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-19 15:37:41 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-22 12:17:24 +0200 |
commit | 34cdc354817111f938e5eff45a49a3e3f6f495d4 (patch) | |
tree | 36f35263148c2b2564a110cd9e7c737eaf696ccf | |
parent | 4bd20d3803c6d4fbcc21b9da4a14e552d89e31f3 (diff) | |
download | telepathy-haze-34cdc354817111f938e5eff45a49a3e3f6f495d4.tar.gz |
update for new TpBlockableContactList API
https://bugs.freedesktop.org/show_bug.cgi?id=77772
-rw-r--r-- | src/contact-list.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/contact-list.c b/src/contact-list.c index 17fbe8b..a6f496c 100644 --- a/src/contact-list.c +++ b/src/contact-list.c @@ -1219,7 +1219,7 @@ haze_contact_list_mutable_groups_init ( } static gboolean -is_blocked (TpBaseContactList *cl, +is_blocked (TpBlockableContactList *cl, TpHandle contact) { HazeContactList *self = HAZE_CONTACT_LIST (cl); @@ -1241,7 +1241,7 @@ is_blocked (TpBaseContactList *cl, } static TpHandleSet * -dup_blocked_contacts (TpBaseContactList *cl) +dup_blocked_contacts (TpBlockableContactList *cl) { HazeContactList *self = HAZE_CONTACT_LIST (cl); PurpleAccount *account = self->priv->conn->account; @@ -1286,31 +1286,31 @@ set_contacts_privacy (TpBaseContactList *cl, } static void -block_contacts_async(TpBaseContactList *cl, +block_contacts_async(TpBlockableContactList *cl, TpHandleSet *contacts, GAsyncReadyCallback callback, gpointer user_data) { - set_contacts_privacy (cl, contacts, TRUE); + set_contacts_privacy (TP_BASE_CONTACT_LIST (cl), contacts, TRUE); tp_simple_async_report_success_in_idle ((GObject *) cl, callback, user_data, block_contacts_async); } static void -unblock_contacts_async(TpBaseContactList *cl, +unblock_contacts_async(TpBlockableContactList *cl, TpHandleSet *contacts, GAsyncReadyCallback callback, gpointer user_data) { - set_contacts_privacy (cl, contacts, FALSE); + set_contacts_privacy (TP_BASE_CONTACT_LIST (cl), contacts, FALSE); tp_simple_async_report_success_in_idle ((GObject *) cl, callback, user_data, unblock_contacts_async); } static gboolean -can_block (TpBaseContactList *cl) +can_block (TpBlockableContactList *cl) { HazeContactList *self = HAZE_CONTACT_LIST (cl); @@ -1352,8 +1352,8 @@ haze_contact_list_deny_changed ( } set = tp_handle_set_new_containing (contact_repo, handle); - tp_base_contact_list_contact_blocking_changed ( - TP_BASE_CONTACT_LIST (conn->contact_list), + tp_blockable_contact_list_contact_blocking_changed ( + TP_BLOCKABLE_CONTACT_LIST (conn->contact_list), set); g_object_unref (set); } |