Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 12239:36d3b1eaf20e
[gaim-migrate @ 14541]
this makes more sense to me
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 27 Nov 2005 19:45:29 +0000 |
parents | 375f1f3817a8 |
children | 1c0fd404e07e |
comparison
equal
deleted
inserted
replaced
12238:40f6334bb424 | 12239:36d3b1eaf20e |
---|---|
2446 | 2446 |
2447 for (; l != NULL ; l = l->next) { | 2447 for (; l != NULL ; l = l->next) { |
2448 GaimConversation *conv = (GaimConversation*)l->data; | 2448 GaimConversation *conv = (GaimConversation*)l->data; |
2449 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); | 2449 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); |
2450 | 2450 |
2451 if (gtkconv->unseen_state >= min_state) { | 2451 if (gtkconv->unseen_state >= min_state && gtkconv->win == hidden_convwin) { |
2452 GtkWidget *icon = gtk_image_new(); | 2452 GtkWidget *icon = gtk_image_new(); |
2453 GdkPixbuf *pbuf = gaim_gtkconv_get_tab_icon(conv, TRUE); | 2453 GdkPixbuf *pbuf = gaim_gtkconv_get_tab_icon(conv, TRUE); |
2454 GtkWidget *item; | 2454 GtkWidget *item; |
2455 gchar *text = g_strdup_printf("%s (%d)", | 2455 gchar *text = g_strdup_printf("%s (%d)", |
2456 gtk_label_get_text(GTK_LABEL(gtkconv->tab_label)), | 2456 gtk_label_get_text(GTK_LABEL(gtkconv->tab_label)), |
5696 | 5696 |
5697 conv = gtkconv->active_conv; | 5697 conv = gtkconv->active_conv; |
5698 | 5698 |
5699 if(gaim_status_type_get_primitive( | 5699 if(gaim_status_type_get_primitive( |
5700 gaim_status_get_type(gaim_account_get_active_status( | 5700 gaim_status_get_type(gaim_account_get_active_status( |
5701 gaim_conversation_get_account(conv)))) == GAIM_STATUS_AWAY) | 5701 gaim_conversation_get_account(conv)))) == GAIM_STATUS_AWAY) |
5702 continue; | 5702 continue; |
5703 | 5703 |
5704 private_remove_gtkconv(hidden_convwin, gtkconv, FALSE); | 5704 private_remove_gtkconv(hidden_convwin, gtkconv, FALSE); |
5705 gaim_gtkconv_placement_place(gtkconv); | 5705 gaim_gtkconv_placement_place(gtkconv); |
5706 } | 5706 } |
7435 if (place_conv) | 7435 if (place_conv) |
7436 place_conv(gtkconv); | 7436 place_conv(gtkconv); |
7437 else | 7437 else |
7438 conv_placement_new_window(gtkconv); | 7438 conv_placement_new_window(gtkconv); |
7439 } | 7439 } |
7440 | |
7441 gboolean | |
7442 gaim_gtkconv_is_hidden(GaimGtkConversation *gtkconv) | |
7443 { | |
7444 g_return_val_if_fail(gtkconv != NULL, FALSE); | |
7445 | |
7446 return (gtkconv->win == hidden_convwin); | |
7447 } |