Mercurial > pidgin.yaz
changeset 2937:261895f72f8a
[gaim-migrate @ 2950]
I'm never committing to gaim again. Really. You've got to believe me on this.
committer: Tailor Script <tailor@pidgin.im>
author | Adam Fritzler <mid@auk.cx> |
---|---|
date | Fri, 25 Jan 2002 04:49:39 +0000 |
parents | dd71bb88bc58 |
children | 63d3b9101aad |
files | src/conversation.c src/server.c src/ui.h |
diffstat | 3 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Thu Jan 24 21:43:09 2002 +0000 +++ b/src/conversation.c Fri Jan 25 04:49:39 2002 +0000 @@ -134,6 +134,14 @@ return; } +void set_convo_name(struct conversation *c, const char *nname) +{ + + g_snprintf(c->name, sizeof(c->name), "%s", nname); + + return; +} + struct conversation *new_conversation(char *name) { struct conversation *c;
--- a/src/server.c Thu Jan 24 21:43:09 2002 +0000 +++ b/src/server.c Fri Jan 25 04:49:39 2002 +0000 @@ -639,6 +639,8 @@ else if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) play_sound(RECEIVE); + set_convo_name(cnv, name); + write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime, len); }
--- a/src/ui.h Thu Jan 24 21:43:09 2002 +0000 +++ b/src/ui.h Fri Jan 25 04:49:39 2002 +0000 @@ -339,6 +339,7 @@ extern void raise_convo_tab(struct conversation *); extern void set_convo_title(struct conversation *); extern void show_conv(struct conversation *); +void set_convo_name(struct conversation *c, const char *nname); extern struct conversation *new_conversation(char *); extern void delete_conversation(struct conversation *); extern void surround(GtkWidget *, char *, char *);