# HG changeset patch # User Sean Egan # Date 1158340237 0 # Node ID 16bba6d02c2ac60d818312f557ee025e27b7068f # Parent fe9222bf8b1de7746d3540cb0b2f02286c8fdae1 [gaim-migrate @ 17283] Only color the group name when not selected committer: Tailor Script diff -r fe9222bf8b1d -r 16bba6d02c2a gtk/gtkblist.c --- 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("%s (%d/%d)", - 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("%s (%d/%d)", + esc, gaim_blist_get_group_online_count(group), + gaim_blist_get_group_size(group, FALSE)); + else + mark = g_strdup_printf("%s (%d/%d)", + 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,