GNOME Bugzilla – Bug 780960
pango_attr_foreground_alpha_new() does not affect entry text
Last modified: 2017-04-08 02:50:55 UTC
When setting a PangoAttrList to the GtkEntry:attributes property, which contains a foreground alpha attr, no change is made. I would expect that pango_attr_foreground_alpha_new(0x7fff) to result in gray text.
Do you have a testcase ?
And is this specifically entries breaking ? what about labels or text view ?
Created attachment 349396 [details] test case for entry/label Label doesn't do what I'd expect either. Perhaps you must explicitly set a foreground color to be able to use pango_attr_foreground_alpha_new()? That would be rather unfortunate API, but not exactly surprising if it where the case.
It seems that your hunch is correct: adding a foreground attribute makes it work
*** This bug has been marked as a duplicate of bug 773767 ***