Mercurial > pidgin.yaz
comparison src/conversation.h @ 10849:c203cd637f95
[gaim-migrate @ 12521]
sf patch #1185449, from Richard Laager
"As the comment in gtkconv.c says, saving a duplicate copy
of the entire conversation is completely bogus. Saving a
copy of a conversation is a UI thing (if the UI is only showing
the last five messages, for example, that's all the user
would expect to be saved). Therefore, there's no problem
having the UI save its own buffer. The GTK+ UI is already
doing this with the imhtml object. This patch removes the
history from GaimConversation and uses the buffer in the
imhtml object when saving a conversation.
It also adds <html>, <head>, <title>, and <body> tags to
the file to make it a bit more valid.
This patch is extremely likely to break plugins because it
changes the size of the GaimConversation struct. As such,
if this is committed, I recommend the developers recompile
non-default plugins. This broke Gaim-Encryption for me,
hence the warning."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 19 Apr 2005 04:21:39 +0000 |
parents | 53e7884c549a |
children | 2b772e7094ef |
comparison
equal
deleted
inserted
replaced
10848:98de05966d6d | 10849:c203cd637f95 |
---|---|
289 gboolean logging; /**< The status of logging. */ | 289 gboolean logging; /**< The status of logging. */ |
290 | 290 |
291 GaimLog *log; /**< This conversation's log */ | 291 GaimLog *log; /**< This conversation's log */ |
292 | 292 |
293 GList *send_history; /**< The send history. */ | 293 GList *send_history; /**< The send history. */ |
294 GString *history; /**< The conversation history. */ | |
295 | 294 |
296 GaimUnseenState unseen; /**< The unseen tab state. */ | 295 GaimUnseenState unseen; /**< The unseen tab state. */ |
297 | 296 |
298 union | 297 union |
299 { | 298 { |
305 | 304 |
306 GaimConversationUiOps *ui_ops; /**< UI-specific operations. */ | 305 GaimConversationUiOps *ui_ops; /**< UI-specific operations. */ |
307 void *ui_data; /**< UI-specific data. */ | 306 void *ui_data; /**< UI-specific data. */ |
308 | 307 |
309 GHashTable *data; /**< Plugin-specific data. */ | 308 GHashTable *data; /**< Plugin-specific data. */ |
310 | 309 |
311 GaimConnectionFlags features; /**< The supported features */ | 310 GaimConnectionFlags features; /**< The supported features */ |
312 | 311 |
313 }; | 312 }; |
314 | 313 |
315 typedef void (*GaimConvPlacementFunc)(GaimConversation *); | 314 typedef void (*GaimConvPlacementFunc)(GaimConversation *); |
662 * @param conv The conversation. | 661 * @param conv The conversation. |
663 * | 662 * |
664 * @return The conversation's send history. | 663 * @return The conversation's send history. |
665 */ | 664 */ |
666 GList *gaim_conversation_get_send_history(const GaimConversation *conv); | 665 GList *gaim_conversation_get_send_history(const GaimConversation *conv); |
667 | |
668 /** | |
669 * Sets the specified conversation's history. | |
670 * | |
671 * @param conv The conversation. | |
672 * @param history The history. | |
673 */ | |
674 void gaim_conversation_set_history(GaimConversation *conv, GString *history); | |
675 | |
676 /** | |
677 * Returns the specified conversation's history. | |
678 * | |
679 * @param conv The conversation. | |
680 * | |
681 * @return The conversation's history. | |
682 */ | |
683 GString *gaim_conversation_get_history(const GaimConversation *conv); | |
684 | 666 |
685 /** | 667 /** |
686 * Returns the specified conversation's parent window. | 668 * Returns the specified conversation's parent window. |
687 * | 669 * |
688 * @param conv The conversation. | 670 * @param conv The conversation. |