Tue, 14 Oct 2003 03:28:26 +0000
[gaim-migrate @ 7833]
Added gaim_conversation_set_name().
| src/conversation.c | file | annotate | diff | comparison | revisions | |
| src/conversation.h | file | annotate | diff | comparison | revisions |
--- a/src/conversation.c Tue Oct 14 03:26:11 2003 +0000 +++ b/src/conversation.c Tue Oct 14 03:28:26 2003 +0000 @@ -1163,6 +1163,17 @@ return conv->unseen; } +void +gaim_conversation_set_name(GaimConversation *conv, const char *name) +{ + g_return_if_fail(conv != NULL); + + if (conv->name != NULL) + g_free(conv->name); + + conv->name = (name == NULL ? NULL : g_strdup(name)); +} + const char * gaim_conversation_get_name(const GaimConversation *conv) {
--- a/src/conversation.h Tue Oct 14 03:26:11 2003 +0000 +++ b/src/conversation.h Tue Oct 14 03:28:26 2003 +0000 @@ -599,6 +599,14 @@ GaimUnseenState gaim_conversation_get_unseen(const GaimConversation *conv); /** + * Sets the specified conversation's name. + * + * @param conv The conversation. + * @param name The conversation's name. + */ +void gaim_conversation_set_name(GaimConversation *conv, const char *name); + +/** * Returns the specified conversation's name. * * @param conv The conversation.