Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/gtkconv.c Sun Nov 27 18:46:14 2005 +0000 +++ b/src/gtkconv.c Sun Nov 27 19:45:29 2005 +0000 @@ -2448,7 +2448,7 @@ GaimConversation *conv = (GaimConversation*)l->data; GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); - if (gtkconv->unseen_state >= min_state) { + if (gtkconv->unseen_state >= min_state && gtkconv->win == hidden_convwin) { GtkWidget *icon = gtk_image_new(); GdkPixbuf *pbuf = gaim_gtkconv_get_tab_icon(conv, TRUE); GtkWidget *item; @@ -5698,7 +5698,7 @@ if(gaim_status_type_get_primitive( gaim_status_get_type(gaim_account_get_active_status( - gaim_conversation_get_account(conv)))) == GAIM_STATUS_AWAY) + gaim_conversation_get_account(conv)))) == GAIM_STATUS_AWAY) continue; private_remove_gtkconv(hidden_convwin, gtkconv, FALSE); @@ -7437,3 +7437,11 @@ else conv_placement_new_window(gtkconv); } + +gboolean +gaim_gtkconv_is_hidden(GaimGtkConversation *gtkconv) +{ + g_return_val_if_fail(gtkconv != NULL, FALSE); + + return (gtkconv->win == hidden_convwin); +}