From: Christian H. <ch...@us...> - 2003-10-14 03:28:30
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv7661 Modified Files: conversation.c conversation.h Log Message: Added gaim_conversation_set_name(). Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.564 retrieving revision 1.565 diff -u -d -p -r1.564 -r1.565 --- conversation.c 2 Oct 2003 05:26:40 -0000 1.564 +++ conversation.c 14 Oct 2003 03:28:25 -0000 1.565 @@ -1163,6 +1163,17 @@ gaim_conversation_get_unseen(const GaimC 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) { Index: conversation.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.h,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -p -r1.35 -r1.36 --- conversation.h 2 Oct 2003 04:08:56 -0000 1.35 +++ conversation.h 14 Oct 2003 03:28:26 -0000 1.36 @@ -599,6 +599,14 @@ void gaim_conversation_set_unseen(GaimCo 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. |