changeset 14560:16bba6d02c2a

[gaim-migrate @ 17283] Only color the group name when not selected committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 15 Sep 2006 17:10:37 +0000
parents fe9222bf8b1d
children 3ff55ec8203a
files gtk/gtkblist.c
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkblist.c	Fri Sep 15 02:05:23 2006 +0000
+++ b/gtk/gtkblist.c	Fri Sep 15 17:10:37 2006 +0000
@@ -4349,6 +4349,7 @@
 	int count;
 	gboolean show = FALSE;
 	GaimBlistNode* gnode;
+	gboolean selected = gtkblist ? (gtkblist->selected_node == node) : FALSE;
 
 	g_return_if_fail(node != NULL);
 
@@ -4393,10 +4394,16 @@
 		gtk_tree_path_free(path);
 
 		esc = g_markup_escape_text(group->name, -1);
-		mark = g_strdup_printf("<span color='#%02x%02x%02x'><span weight='bold'>%s</span> (%d/%d)</span>",
-				       textcolor.red>>8, textcolor.green>>8, textcolor.blue>>8,
-				       esc, gaim_blist_get_group_online_count(group),
-				       gaim_blist_get_group_size(group, FALSE));
+		if (selected)
+			mark = g_strdup_printf("<span weight='bold'>%s</span> (%d/%d)",
+					       esc, gaim_blist_get_group_online_count(group),
+					       gaim_blist_get_group_size(group, FALSE));	
+		else
+			mark = g_strdup_printf("<span color='#%02x%02x%02x'><span weight='bold'>%s</span> (%d/%d)</span>",
+					       textcolor.red>>8, textcolor.green>>8, textcolor.blue>>8,
+					       esc, gaim_blist_get_group_online_count(group),
+					       gaim_blist_get_group_size(group, FALSE));
+		
 		g_free(esc);
 		
 		gtk_tree_store_set(gtkblist->treemodel, &iter,