Mercurial > pidgin
diff src/dialogs.c @ 4476:62c1e5e656d0
[gaim-migrate @ 4751]
gaim_conversation_new() now takes an aim_user parameter. This should fix
the new placement grouping bugs, as the default "user" (account)
selected was the first account in the list of connections. There may be
side-effects, especially with perl plugins, but I'm not sure. Please report
anything odd that you see as a result of this.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 30 Jan 2003 18:45:50 +0000 |
parents | e73c4e8e2d03 |
children | 3196d9044a45 |
line wrap: on
line diff
--- a/src/dialogs.c Thu Jan 30 18:38:34 2003 +0000 +++ b/src/dialogs.c Thu Jan 30 18:45:50 2003 +0000 @@ -561,24 +561,28 @@ { const char *who; struct gaim_conversation *conv; + struct aim_user *user; if (resp == GTK_RESPONSE_OK) { who = gtk_entry_get_text(GTK_ENTRY(info->entry)); - + if (!g_strcasecmp(who, "")) { g_free(info); return; } + user = (info->gc ? info->gc->user : NULL); + conv = gaim_find_conversation(who); if (conv == NULL) - conv = gaim_conversation_new(GAIM_CONV_IM, who); - else + conv = gaim_conversation_new(GAIM_CONV_IM, user, who); + else { gaim_window_raise(gaim_conversation_get_window(conv)); - if (info->gc) - gaim_conversation_set_user(conv, info->gc->user); + if (user) + gaim_conversation_set_user(conv, info->gc->user); + } } destroy_dialog(NULL, imdialog);