im.pidgin.pidgin: 291ef07a3b75f3cde5bcdd92767af92401228a7a

seanegan at pidgin.im seanegan at pidgin.im
Tue Dec 4 03:30:44 EST 2007


-----------------------------------------------------------------
Revision: 291ef07a3b75f3cde5bcdd92767af92401228a7a
Ancestor: fd241751ba7c5d47fe66c0b96787eae776d435af
Author: seanegan at pidgin.im
Date: 2007-12-04T08:25:58
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Don't set the color for the group node text, now that we're not setting its background

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	66b62cfbbaa5855822aac42279eda72e89e34bdf
+++ pidgin/gtkblist.c	5933304f6217bea4062f54576d4be735fd34a6b8
@@ -5710,7 +5710,6 @@ static char *pidgin_get_group_title(Purp
 static char *pidgin_get_group_title(PurpleBlistNode *gnode, gboolean expanded)
 {
 	PurpleGroup *group;
-	GdkColor textcolor;
 	gboolean selected;
 	char group_count[12] = "";
 	char *mark, *esc;
@@ -5718,7 +5717,6 @@ static char *pidgin_get_group_title(Purp
 	GtkTreeIter iter;
 
 	group = (PurpleGroup*)gnode;
-	textcolor = gtkblist->treeview->style->fg[GTK_STATE_ACTIVE];
 
 	if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview)), NULL, &iter)) {
 		gtk_tree_model_get(GTK_TREE_MODEL(gtkblist->treemodel), &iter,
@@ -5733,12 +5731,7 @@ static char *pidgin_get_group_title(Purp
 	}
 
 	esc = g_markup_escape_text(group->name, -1);
-	if (selected)
-		mark = g_strdup_printf("<span weight='bold'>%s</span>%s", esc ? esc : "", group_count);
-	else
-		mark = g_strdup_printf("<span color='#%02x%02x%02x' weight='bold'>%s</span>%s",
-				       textcolor.red>>8, textcolor.green>>8, textcolor.blue>>8,
-				       esc ? esc : "", group_count);
+	mark = g_strdup_printf("<span weight='bold'>%s</span>%s", esc ? esc : "", group_count);
 
 	g_free(esc);
 	return mark;


More information about the Commits mailing list