# HG changeset patch # User andrew.victor@mxit.com # Date 1317487720 0 # Node ID 588f9b808a313b9f43809fdb078ca6dff67b0d3d # Parent 308519b40f503d451e7aed25ec14dfcdeae34bac Hide struct _PurpleConversation. diff -r 308519b40f50 -r 588f9b808a31 ChangeLog.API --- a/ChangeLog.API Sat Oct 01 16:21:16 2011 +0000 +++ b/ChangeLog.API Sat Oct 01 16:48:40 2011 +0000 @@ -192,6 +192,7 @@ * struct _PidginChatPane * struct _PidginImPane * struct _PurpleAttentionType + * struct _PurpleConversation * struct _PurpleConvChat * struct _PurpleConvChatBuddy * struct _PurpleConvIm diff -r 308519b40f50 -r 588f9b808a31 libpurple/conversation.c --- a/libpurple/conversation.c Sat Oct 01 16:21:16 2011 +0000 +++ b/libpurple/conversation.c Sat Oct 01 16:48:40 2011 +0000 @@ -110,6 +110,40 @@ gpointer ui_data; }; +/** + * A core representation of a conversation between two or more people. + * + * The conversation can be an IM or a chat. + */ +struct _PurpleConversation +{ + PurpleConversationType type; /**< The type of conversation. */ + + PurpleAccount *account; /**< The user using this conversation. */ + + + char *name; /**< The name of the conversation. */ + char *title; /**< The window title. */ + + gboolean logging; /**< The status of logging. */ + + GList *logs; /**< This conversation's logs */ + + union + { + PurpleConvIm *im; /**< IM-specific data. */ + PurpleConvChat *chat; /**< Chat-specific data. */ + } u; + + PurpleConversationUiOps *ui_ops; /**< UI-specific operations. */ + void *ui_data; /**< UI-specific data. */ + + GHashTable *data; /**< Plugin-specific data. */ + + PurpleConnectionFlags features; /**< The supported features */ + GList *message_history; /**< Message history, as a GList of PurpleConvMessage's */ +}; + static GList *conversations = NULL; static GList *ims = NULL; diff -r 308519b40f50 -r 588f9b808a31 libpurple/conversation.h --- a/libpurple/conversation.h Sat Oct 01 16:21:16 2011 +0000 +++ b/libpurple/conversation.h Sat Oct 01 16:48:40 2011 +0000 @@ -261,40 +261,6 @@ char *alias; }; -/** - * A core representation of a conversation between two or more people. - * - * The conversation can be an IM or a chat. - */ -struct _PurpleConversation -{ - PurpleConversationType type; /**< The type of conversation. */ - - PurpleAccount *account; /**< The user using this conversation. */ - - - char *name; /**< The name of the conversation. */ - char *title; /**< The window title. */ - - gboolean logging; /**< The status of logging. */ - - GList *logs; /**< This conversation's logs */ - - union - { - PurpleConvIm *im; /**< IM-specific data. */ - PurpleConvChat *chat; /**< Chat-specific data. */ - } u; - - PurpleConversationUiOps *ui_ops; /**< UI-specific operations. */ - void *ui_data; /**< UI-specific data. */ - - GHashTable *data; /**< Plugin-specific data. */ - - PurpleConnectionFlags features; /**< The supported features */ - GList *message_history; /**< Message history, as a GList of PurpleConvMessage's */ -}; - #ifdef __cplusplus extern "C" { #endif diff -r 308519b40f50 -r 588f9b808a31 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sat Oct 01 16:21:16 2011 +0000 +++ b/pidgin/gtkconv.c Sat Oct 01 16:48:40 2011 +0000 @@ -1425,16 +1425,14 @@ purple_conversation_write(conv, NULL, _("Logging started. Future messages in this conversation will be logged."), - conv->logs ? (PURPLE_MESSAGE_SYSTEM) : - (PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NO_LOG), + PURPLE_MESSAGE_SYSTEM, time(NULL)); } else { purple_conversation_write(conv, NULL, _("Logging stopped. Future messages in this conversation will not be logged."), - conv->logs ? (PURPLE_MESSAGE_SYSTEM) : - (PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NO_LOG), + PURPLE_MESSAGE_SYSTEM, time(NULL)); /* Disable the logging second, so that the above message can be logged. */