diff 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
line wrap: on
line diff
--- a/src/conversation.c	Fri Oct 26 23:49:50 2001 +0000
+++ b/src/conversation.c	Sat Oct 27 00:12:14 2001 +0000
@@ -1597,17 +1597,27 @@
 											(notebook),
 											g_list_index(ws,
 												     c)));
-		GtkStyle *style = gtk_style_new();
+		GtkStyle *style;
+		if ((c->unseen == 2) || ((c->unseen == 1) && !(flags & WFLAG_NICK)))
+			return;
+		style = gtk_style_new();
 		if (!GTK_WIDGET_REALIZED(label))
 			gtk_widget_realize(label);
 		gdk_font_unref(style->font);
 		style->font = gdk_font_ref(label->style->font);
-		style->fg[0].red = 0xcccc;
-		style->fg[0].green = 0x0000;
-		style->fg[0].blue = 0x0000;
+		if (flags & WFLAG_NICK) {
+			style->fg[0].red = 0x0000;
+			style->fg[0].green = 0x0000;
+			style->fg[0].blue = 0xcccc;
+			c->unseen = 2;
+		} else {
+			style->fg[0].red = 0xcccc;
+			style->fg[0].green = 0x0000;
+			style->fg[0].blue = 0x0000;
+			c->unseen = 1;
+		}
 		gtk_widget_set_style(label, style);
 		gtk_style_unref(style);
-		c->unseen = TRUE;
 	}
 }
 
@@ -2102,7 +2112,7 @@
 	style->font = gdk_font_ref(label->style->font);
 	gtk_widget_set_style(label, style);
 	gtk_style_unref(style);
-	c->unseen = FALSE;
+	c->unseen = 0;
 }