From: <sea...@us...> - 2006-09-15 17:10:43
|
Revision: 17283 http://svn.sourceforge.net/gaim/?rev=17283&view=rev Author: seanegan Date: 2006-09-15 10:10:37 -0700 (Fri, 15 Sep 2006) Log Message: ----------- Only color the group name when not selected Modified Paths: -------------- trunk/gtk/gtkblist.c Modified: trunk/gtk/gtkblist.c =================================================================== --- trunk/gtk/gtkblist.c 2006-09-15 02:05:23 UTC (rev 17282) +++ trunk/gtk/gtkblist.c 2006-09-15 17:10:37 UTC (rev 17283) @@ -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, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |