Mercurial > pidgin.yaz
changeset 18309:c50e960e7086
Patch from SuperMMX to correct group colors. Fixes #1640
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 19:43:48 +0000 |
parents | 4c3a24270114 |
children | 9b3c2ba1a5c3 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Wed Jun 27 18:52:12 2007 +0000 +++ b/pidgin/gtkblist.c Wed Jun 27 19:43:48 2007 +0000 @@ -4911,10 +4911,17 @@ gboolean selected; char group_count[12] = ""; char *mark, *esc; + PurpleBlistNode *selected_node = NULL; + GtkTreeIter iter; group = (PurpleGroup*)gnode; textcolor = gtkblist->treeview->style->fg[GTK_STATE_ACTIVE]; - selected = gtkblist ? (gtkblist->selected_node == gnode) : FALSE; + + 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, + NODE_COLUMN, &selected_node, -1); + } + selected = (gnode == selected_node); if (!expanded) { g_snprintf(group_count, sizeof(group_count), " (%d/%d)",