Mercurial > pidgin
changeset 32051:968a51c4fa9d
purple_conv_chat_set_users() has been deprecated since 2.9.0, and can be removed for 3.0.0.
author | andrew.victor@mxit.com |
---|---|
date | Mon, 05 Sep 2011 20:16:47 +0000 |
parents | 38ce2e217fcb |
children | 06e0b6be6432 |
files | ChangeLog.API libpurple/conversation.c libpurple/conversation.h libpurple/plugins/perl/common/Conversation.xs |
diffstat | 4 files changed, 1 insertions(+), 44 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog.API Mon Sep 05 20:08:59 2011 +0000 +++ b/ChangeLog.API Mon Sep 05 20:16:47 2011 +0000 @@ -114,6 +114,7 @@ * purple_buddy_icons_set_custom_icon * purple_connection_error_reason * purple_contact_set_alias + * purple_conv_chat_set_users * purple_core_migrate * purple_dnsquery_a_account * purple_notify_searchresults_column_get_title
--- a/libpurple/conversation.c Mon Sep 05 20:08:59 2011 +0000 +++ b/libpurple/conversation.c Mon Sep 05 20:16:47 2011 +0000 @@ -1379,16 +1379,6 @@ } GList * -purple_conv_chat_set_users(PurpleConvChat *chat, GList *users) -{ - g_return_val_if_fail(chat != NULL, NULL); - - chat->in_room = users; - - return users; -} - -GList * purple_conv_chat_get_users(const PurpleConvChat *chat) { g_return_val_if_fail(chat != NULL, NULL);
--- a/libpurple/conversation.h Mon Sep 05 20:08:59 2011 +0000 +++ b/libpurple/conversation.h Mon Sep 05 20:16:47 2011 +0000 @@ -1080,22 +1080,6 @@ PurpleConversation *purple_conv_chat_get_conversation(const PurpleConvChat *chat); /** - * Sets the list of users in the chat room. - * - * @note Calling this function will not update the display of the users. - * Please use purple_conv_chat_add_user(), purple_conv_chat_add_users(), - * purple_conv_chat_remove_user(), and purple_conv_chat_remove_users() instead. - * - * @param chat The chat. - * @param users The list of users. - * - * @return The list passed. - * - * @deprecated This function will be removed in 3.0.0. You shouldn't be using it anyway. - */ -GList *purple_conv_chat_set_users(PurpleConvChat *chat, GList *users); - -/** * Returns a list of users in the chat room. The members of the list * are PurpleConvChatBuddy objects. *
--- a/libpurple/plugins/perl/common/Conversation.xs Mon Sep 05 20:08:59 2011 +0000 +++ b/libpurple/plugins/perl/common/Conversation.xs Mon Sep 05 20:16:47 2011 +0000 @@ -338,24 +338,6 @@ Purple::Conversation::Chat chat void -purple_conv_chat_set_users(chat, users) - Purple::Conversation::Chat chat - SV * users -PREINIT: - GList *l, *t_GL; - int i, t_len; -PPCODE: - t_GL = NULL; - t_len = av_len((AV *)SvRV(users)); - - for (i = 0; i <= t_len; i++) - t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(users), i, 0))); - - for (l = purple_conv_chat_set_users(chat, t_GL); l != NULL; l = l->next) { - XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry"))); - } - -void purple_conv_chat_get_users(chat) Purple::Conversation::Chat chat PREINIT: