When I have a gtk.CellRendererText, I can associate its foreground color with one of the tree store’s columns, and set the foreground-set attribute to True, to change the color of the text in that column. However, when the row with the colored column is selected, its color disappears, and is the same as any selected cell’s color. How do I change the color when it’s selected?
When I have a gtk.CellRendererText , I can associate its foreground color with one
Share
I’ve had the same problem and, after trying different alternatives, using the
markupproperty instead of thetextproperty solved the problem. Please find below and example that works in Ubuntu Maverick:In a more complex treeview with the multiple columns that I’m working on, the
markupproperty doesn’t seem to work when the row isn’t selected. Anyway, usage of bothmarkupandforegroundproperties at the same time seems to work fine.