comparison src/gtkconv.c @ 12469:f4efe0c0de88

[gaim-migrate @ 14779] I'm not going to lie, this is just whitespace changes to unseen conversation stuff. I thought I got this in the last commit. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 12 Dec 2005 19:28:06 +0000
parents 6faefbebcd24
children 9d7fb0b21d9f
comparison
equal deleted inserted replaced
12468:6faefbebcd24 12469:f4efe0c0de88
2424 { 2424 {
2425 GList *l; 2425 GList *l;
2426 GList *r = NULL; 2426 GList *r = NULL;
2427 guint c = 0; 2427 guint c = 0;
2428 2428
2429 if (type==GAIM_CONV_TYPE_IM) { 2429 if (type == GAIM_CONV_TYPE_IM) {
2430 l = gaim_get_ims(); 2430 l = gaim_get_ims();
2431 } else if (type==GAIM_CONV_TYPE_CHAT) { 2431 } else if (type == GAIM_CONV_TYPE_CHAT) {
2432 l = gaim_get_chats(); 2432 l = gaim_get_chats();
2433 } else { 2433 } else {
2434 l = gaim_get_conversations(); 2434 l = gaim_get_conversations();
2435 } 2435 }
2436 2436
2437 for (; l!=NULL && (max_count==0 || c < max_count); l = l->next) { 2437 for (; l != NULL && (max_count == 0 || c < max_count); l = l->next) {
2438 GaimConversation *conv = (GaimConversation*)l->data; 2438 GaimConversation *conv = (GaimConversation*)l->data;
2439 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); 2439 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv);
2440 2440
2441 if(gtkconv->active_conv != conv) 2441 if(gtkconv->active_conv != conv)
2442 continue; 2442 continue;
2443 2443
2444 if (gtkconv->unseen_state >= min_state && (!hidden_only || 2444 if (gtkconv->unseen_state >= min_state
2445 (hidden_only && gtkconv->win==hidden_convwin))) { 2445 && (!hidden_only ||
2446 (hidden_only && gtkconv->win == hidden_convwin))) {
2446 2447
2447 r = g_list_prepend(r, conv); 2448 r = g_list_prepend(r, conv);
2448 c++; 2449 c++;
2449 } 2450 }
2450 } 2451 }