Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 11846:908ff9b56e99
[gaim-migrate @ 14137]
SF Patch #1338349 from sadrul
'From the kwiki (GenericBugs)
"If non-buddy B is in a chat with your account A, and
you add them as a buddy to account C, they appear in
the chat as if they were a buddy of account A until you
re-enter the chat."'
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 26 Oct 2005 13:03:56 +0000 |
parents | 821f40e1912f |
children | 3bfb2cffcef2 |
comparison
equal
deleted
inserted
replaced
11845:9beb663a6fb5 | 11846:908ff9b56e99 |
---|---|
3278 int f; | 3278 int f; |
3279 | 3279 |
3280 g_return_if_fail(buddy != NULL); | 3280 g_return_if_fail(buddy != NULL); |
3281 g_return_if_fail(conv != NULL); | 3281 g_return_if_fail(conv != NULL); |
3282 | 3282 |
3283 /* Do nothing if the buddy does not belong to the conv's account */ | |
3284 if (gaim_buddy_get_account(buddy) != gaim_conversation_get_account(conv)) | |
3285 return; | |
3286 | |
3283 /* This is safe because this callback is only used in chats, not IMs. */ | 3287 /* This is safe because this callback is only used in chats, not IMs. */ |
3284 model = gtk_tree_view_get_model(GTK_TREE_VIEW(GAIM_GTK_CONVERSATION(conv)->u.chat->list)); | 3288 model = gtk_tree_view_get_model(GTK_TREE_VIEW(GAIM_GTK_CONVERSATION(conv)->u.chat->list)); |
3285 | 3289 |
3286 if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(model), &iter)) | 3290 if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(model), &iter)) |
3287 return; | 3291 return; |