After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780960 - pango_attr_foreground_alpha_new() does not affect entry text
pango_attr_foreground_alpha_new() does not affect entry text
Status: RESOLVED DUPLICATE of bug 773767
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2017-04-06 04:13 UTC by Christian Hergert
Modified: 2017-04-08 02:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case for entry/label (1.57 KB, text/x-csrc)
2017-04-06 19:09 UTC, Christian Hergert
Details

Description Christian Hergert 2017-04-06 04:13:53 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.
Comment 1 Matthias Clasen 2017-04-06 12:24:45 UTC
Do you have a testcase ?
Comment 2 Matthias Clasen 2017-04-06 12:33:34 UTC
And is this specifically entries breaking ? what about labels or text view ?
Comment 3 Christian Hergert 2017-04-06 19:09:53 UTC
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.
Comment 4 Matthias Clasen 2017-04-07 16:43:29 UTC
It seems that your hunch is correct: adding a foreground attribute makes it work
Comment 5 Matthias Clasen 2017-04-08 02:50:55 UTC

*** This bug has been marked as a duplicate of bug 773767 ***