# HG changeset patch # User Christian Hammond # Date 1066102106 0 # Node ID c93493c59ac3ddcb8ffb73b2f2d25a793699c1a7 # Parent e78c6f6e759c016c8c7a130fb0f2f436842e0bf2 [gaim-migrate @ 7833] Added gaim_conversation_set_name(). committer: Tailor Script diff -r e78c6f6e759c -r c93493c59ac3 src/conversation.c --- 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) { diff -r e78c6f6e759c -r c93493c59ac3 src/conversation.h --- 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.