Mercurial > pidgin.yaz
comparison src/conversation.c @ 11048:3f04018e1308
[gaim-migrate @ 12976]
Disable auto-tab switching in HEAD and sync the comments with
those in oldstatus
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 01 Jul 2005 04:59:01 +0000 |
parents | 50224ac8184d |
children | e4459e8ccfb5 |
comparison
equal
deleted
inserted
replaced
11047:61c7edaca933 | 11048:3f04018e1308 |
---|---|
1364 } | 1364 } |
1365 | 1365 |
1366 gaim_conversation_set_unseen(conv, unseen); | 1366 gaim_conversation_set_unseen(conv, unseen); |
1367 | 1367 |
1368 /* | 1368 /* |
1369 * TODO: This is #if 0'ed out because we don't have a way of | |
1370 * telling if a conversation window is minimized. This | |
1371 * should probably be done in gtkconv.c anyway. | |
1372 */ | |
1373 #if 0 | |
1374 /* | |
1375 * This is auto-tab switching. | |
1376 * | |
1369 * If we received an IM, and the GaimConvWindow is not active, | 1377 * If we received an IM, and the GaimConvWindow is not active, |
1370 * then make this conversation the active tab in this GaimConvWindow. | 1378 * then make this conversation the active tab in this GaimConvWindow. |
1371 * | 1379 * |
1372 * We do this so that, when the user comes back to the conversation | 1380 * We do this so that, when the user comes back to the conversation |
1373 * window, the first thing they'll see is the new message. This is | 1381 * window, the first thing they'll see is the new message. This is |
1375 * taskbar--we want the title of the window to be set to the name | 1383 * taskbar--we want the title of the window to be set to the name |
1376 * of the person that IMed them most recently. | 1384 * of the person that IMed them most recently. |
1377 */ | 1385 */ |
1378 if ((gaim_conversation_get_type(conv) == GAIM_CONV_IM) && | 1386 if ((gaim_conversation_get_type(conv) == GAIM_CONV_IM) && |
1379 (flags & (GAIM_MESSAGE_RECV | GAIM_MESSAGE_ERROR)) && | 1387 (flags & (GAIM_MESSAGE_RECV | GAIM_MESSAGE_ERROR)) && |
1380 (!gaim_conv_window_has_focus(win))) | 1388 (!gaim_conv_window_has_focus(win)) && |
1389 (gaim_conv_window_is_minimized(win))) | |
1381 { | 1390 { |
1382 gaim_conv_window_switch_conversation(win, conv); | 1391 gaim_conv_window_switch_conversation(win, conv); |
1383 } | 1392 } |
1393 #endif | |
1384 } | 1394 } |
1385 | 1395 |
1386 void | 1396 void |
1387 gaim_conversation_update_progress(GaimConversation *conv, float percent) | 1397 gaim_conversation_update_progress(GaimConversation *conv, float percent) |
1388 { | 1398 { |