GNOME Bugzilla – Bug 355214
"weight-set" Problems
Last modified: 2006-09-24 14:42:07 UTC
Please describe the problem: I have an application that bolds some items in a GtkTreeView, depending on a particular column in the GtkListStore. It used to work for me on Fedora Core 4, but when I upgraded to Ubuntu Dapper, it stopped working. Steps to reproduce: I've boiled the code down to a sample application. I think it should work, but it doesn't in Ubuntu. I haven't yet found someone to confirm that it works on an older version of GTK+. Actual results: Nothing is bolded. Expected results: The second row should be bolded. Does this happen every time? Yes. Other information: Is this code wrong, or is this a GTK+ bug?
Created attachment 72475 [details] Sample Application
Created attachment 72476 [details] Swapped weight and weight-set By swapping weight and weight-set, this code can be made to work. A similar idea was proposed for the real application, but it's not the appropriate solution. The old code used to work and I believe it should work.
We tracked this change down a while ago to figure out why the italicizing in gtk-demo broke. I forgot the full details, but we ended up changing the code in gtk-demo, so we have de facto accepted this change and the assorted breakage. the -set properties are not usable as independent properties of their own.
I personally think this should be fixed. The previous behavior was consistent, intuitive, and useful. Plus, breaking backwards compatibility is bad. But, at the very least, this needs to be documented in the API docs.
Actually pango break compatibility, and we are contemplating in the other bug about changing the code of the cell renderer or updating the docs. (I think I vote for the latter) *** This bug has been marked as a duplicate of 350882 ***