# HG changeset patch # User andrew.victor@mxit.com # Date 1317468583 0 # Node ID 1877fd446f8d3c5adb3a84ee12d3f1cb1828ec3e # Parent 1d09b907718179db147a6c37a7cf05f1cf80a313 Hide struct _PurpleConvChat. diff -r 1d09b9077181 -r 1877fd446f8d ChangeLog.API --- a/ChangeLog.API Sat Oct 01 11:02:15 2011 +0000 +++ b/ChangeLog.API Sat Oct 01 11:29:43 2011 +0000 @@ -187,6 +187,7 @@ * struct _PidginChatPane * struct _PidginImPane * struct _PurpleAttentionType + * struct _PurpleConvChat * struct _PurpleMenuAction * struct _PurplePounce * struct _PurpleProxyInfo diff -r 1d09b9077181 -r 1877fd446f8d libpurple/conversation.c --- a/libpurple/conversation.c Sat Oct 01 11:02:15 2011 +0000 +++ b/libpurple/conversation.c Sat Oct 01 11:29:43 2011 +0000 @@ -35,6 +35,26 @@ #define SEND_TYPED_TIMEOUT_SECONDS 5 +/** + * Data specific to Chats. + */ +struct _PurpleConvChat +{ + PurpleConversation *conv; /**< The parent conversation. */ + + GList *in_room; /**< The users in the room. + * @deprecated Will be removed in 3.0.0 + */ + GList *ignored; /**< Ignored users. */ + char *who; /**< The person who set the topic. */ + char *topic; /**< The topic. */ + int id; /**< The chat ID. */ + char *nick; /**< Your nick in this chat. */ + + gboolean left; /**< We left the chat and kept the window open */ + GHashTable *users; /**< Hash table of the users in the room. */ +}; + static GList *conversations = NULL; static GList *ims = NULL; static GList *chats = NULL; diff -r 1d09b9077181 -r 1877fd446f8d libpurple/conversation.h --- a/libpurple/conversation.h Sat Oct 01 11:02:15 2011 +0000 +++ b/libpurple/conversation.h Sat Oct 01 11:29:43 2011 +0000 @@ -265,26 +265,6 @@ }; /** - * Data specific to Chats. - */ -struct _PurpleConvChat -{ - PurpleConversation *conv; /**< The parent conversation. */ - - GList *in_room; /**< The users in the room. - * @deprecated Will be removed in 3.0.0 - */ - GList *ignored; /**< Ignored users. */ - char *who; /**< The person who set the topic. */ - char *topic; /**< The topic. */ - int id; /**< The chat ID. */ - char *nick; /**< Your nick in this chat. */ - - gboolean left; /**< We left the chat and kept the window open */ - GHashTable *users; /**< Hash table of the users in the room. */ -}; - -/** * Data for "Chat Buddies" */ struct _PurpleConvChatBuddy diff -r 1d09b9077181 -r 1877fd446f8d libpurple/protocols/zephyr/zephyr.c --- a/libpurple/protocols/zephyr/zephyr.c Sat Oct 01 11:02:15 2011 +0000 +++ b/libpurple/protocols/zephyr/zephyr.c Sat Oct 01 11:29:43 2011 +0000 @@ -2622,9 +2622,8 @@ * one word isn't ideal either. */ PurpleConvChat *gcc = purple_conversation_get_chat_data(conv); - int id = gcc->id; const char* instance = args[0]; - zephyr_chat_set_topic(purple_conversation_get_gc(conv),id,instance); + zephyr_chat_set_topic(purple_conversation_get_gc(conv),purple_conv_chat_get_id(gcc),instance); return PURPLE_CMD_RET_OK; } diff -r 1d09b9077181 -r 1877fd446f8d pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sat Oct 01 11:02:15 2011 +0000 +++ b/pidgin/gtkconv.c Sat Oct 01 11:29:43 2011 +0000 @@ -8185,7 +8185,7 @@ if (conv->type == PURPLE_CONV_TYPE_CHAT) { pidgin_conv_update_fields(conv, PIDGIN_CONV_TOPIC); - pidgin_conv_chat_add_users(conv, PURPLE_CONV_CHAT(conv)->in_room, TRUE); + pidgin_conv_chat_add_users(conv, purple_conv_chat_get_users(PURPLE_CONV_CHAT(conv)), TRUE); } return TRUE;