comparison src/conversation.c @ 2891:58baac124b0d

[gaim-migrate @ 2904] 2.4.17-pre5 is better than 2.4.17-rc1, i think. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 16 Dec 2001 10:11:55 +0000
parents 403dd881dcc4
children 63cdece2348d
comparison
equal deleted inserted replaced
2890:02f048b66155 2891:58baac124b0d
451 gtk_widget_destroy(c->window); 451 gtk_widget_destroy(c->window);
452 c->window = NULL; 452 c->window = NULL;
453 } 453 }
454 } else { 454 } else {
455 if (chat_options & OPT_CHAT_ONE_WINDOW) { 455 if (chat_options & OPT_CHAT_ONE_WINDOW) {
456 if ((g_list_length(chats) > 1) || 456 if ((convo_options & OPT_CONVO_COMBINE) && (im_options & OPT_IM_ONE_WINDOW)
457 ((convo_options & OPT_CONVO_COMBINE) && 457 && (conversations || chats->next)) {
458 (im_options & OPT_IM_ONE_WINDOW) && conversations)) {
459 gtk_notebook_remove_page(GTK_NOTEBOOK(chat_notebook), 458 gtk_notebook_remove_page(GTK_NOTEBOOK(chat_notebook),
460 g_list_index(chats, c) + 459 g_list_index(chats, c) +
461 g_list_length(conversations)); 460 g_list_length(conversations));
461 } else if (g_list_length(chats) > 1) {
462 gtk_notebook_remove_page(GTK_NOTEBOOK(chat_notebook),
463 g_list_index(chats, c));
462 } else { 464 } else {
463 if (c->window) 465 if (c->window)
464 gtk_widget_destroy(c->window); 466 gtk_widget_destroy(c->window);
465 c->window = NULL; 467 c->window = NULL;
466 all_chats = NULL; 468 all_chats = NULL;