comparison src/conversation.c @ 2625:d8d2df2bdf01

[gaim-migrate @ 2638] runny nose and runny yolk, even if you have a cold still you can cough on my again, i still haven't had my full fill committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 27 Oct 2001 00:12:14 +0000
parents 536198196dc6
children a2cf3cac7e66
comparison
equal deleted inserted replaced
2624:4d5c2c913750 2625:d8d2df2bdf01
1595 GtkWidget *label = gtk_notebook_get_tab_label(GTK_NOTEBOOK(notebook), 1595 GtkWidget *label = gtk_notebook_get_tab_label(GTK_NOTEBOOK(notebook),
1596 gtk_notebook_get_nth_page(GTK_NOTEBOOK 1596 gtk_notebook_get_nth_page(GTK_NOTEBOOK
1597 (notebook), 1597 (notebook),
1598 g_list_index(ws, 1598 g_list_index(ws,
1599 c))); 1599 c)));
1600 GtkStyle *style = gtk_style_new(); 1600 GtkStyle *style;
1601 if ((c->unseen == 2) || ((c->unseen == 1) && !(flags & WFLAG_NICK)))
1602 return;
1603 style = gtk_style_new();
1601 if (!GTK_WIDGET_REALIZED(label)) 1604 if (!GTK_WIDGET_REALIZED(label))
1602 gtk_widget_realize(label); 1605 gtk_widget_realize(label);
1603 gdk_font_unref(style->font); 1606 gdk_font_unref(style->font);
1604 style->font = gdk_font_ref(label->style->font); 1607 style->font = gdk_font_ref(label->style->font);
1605 style->fg[0].red = 0xcccc; 1608 if (flags & WFLAG_NICK) {
1606 style->fg[0].green = 0x0000; 1609 style->fg[0].red = 0x0000;
1607 style->fg[0].blue = 0x0000; 1610 style->fg[0].green = 0x0000;
1611 style->fg[0].blue = 0xcccc;
1612 c->unseen = 2;
1613 } else {
1614 style->fg[0].red = 0xcccc;
1615 style->fg[0].green = 0x0000;
1616 style->fg[0].blue = 0x0000;
1617 c->unseen = 1;
1618 }
1608 gtk_widget_set_style(label, style); 1619 gtk_widget_set_style(label, style);
1609 gtk_style_unref(style); 1620 gtk_style_unref(style);
1610 c->unseen = TRUE;
1611 } 1621 }
1612 } 1622 }
1613 1623
1614 1624
1615 1625
2100 style = gtk_style_new(); 2110 style = gtk_style_new();
2101 gdk_font_unref(style->font); 2111 gdk_font_unref(style->font);
2102 style->font = gdk_font_ref(label->style->font); 2112 style->font = gdk_font_ref(label->style->font);
2103 gtk_widget_set_style(label, style); 2113 gtk_widget_set_style(label, style);
2104 gtk_style_unref(style); 2114 gtk_style_unref(style);
2105 c->unseen = FALSE; 2115 c->unseen = 0;
2106 } 2116 }
2107 2117
2108 2118
2109 void show_conv(struct conversation *c) 2119 void show_conv(struct conversation *c)
2110 { 2120 {