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 793987 - "Allow bold" broken
"Allow bold" broken
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.51.x
Other Linux
: Normal major
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-02 13:06 UTC by Egmont Koblinger
Modified: 2018-03-03 16:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix - part 1 (558 bytes, patch)
2018-03-02 14:10 UTC, Egmont Koblinger
none Details | Review
Fix, v2 (558 bytes, patch)
2018-03-02 14:19 UTC, Egmont Koblinger
rejected Details | Review
int vs bool cleanup (1.03 KB, patch)
2018-03-02 15:31 UTC, Egmont Koblinger
committed Details | Review

Description Egmont Koblinger 2018-03-02 13:06:15 UTC
Reported at https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1752769

"Allow bold" (which has been demoted to a hidden pref, but hasn't been deprecated yet, so should still work) stopped working.
Comment 1 Egmont Koblinger 2018-03-02 14:10:02 UTC
Created attachment 369184 [details] [review]
Fix - part 1

Fix to the above-mentioned bug

Apparently bold was only disabled for faux-bold.
Comment 2 Egmont Koblinger 2018-03-02 14:19:35 UTC
Created attachment 369186 [details] [review]
Fix, v2

Hmmm, I was about to ask if we have a faulty faux bold, but then suddenly realized that it's my previous patch that breaks it :)

Due to the removal of the "&& other_condition" its auto type is no longer bool but int in the previous patch, receiving the value of VTE_ATTR_BOLD which happens to be 32, so later faux bold extends the background rectangle by 32 pixels. (That implicit bool -> int conversion over there is also a bit ugly.)

Maybe it's time to finally remove faux bold (bug 756010, bug 789534 comments 2-4). Probably not a good idea right before the feature freeze, but we could do it early in the 0-53 days.
Comment 3 Egmont Koblinger 2018-03-02 15:31:15 UTC
Created attachment 369191 [details] [review]
int vs bool cleanup
Comment 4 Egmont Koblinger 2018-03-02 15:39:12 UTC
> Created attachment 369186 [details] [review] [review]
> Fix, v2

Alternatively, we could just use "bold" rather than "attr & VTE_ATTR_BOLD" at the very bottom of this method. Christian, pick one please :)
Comment 5 Christian Persch 2018-03-03 12:01:58 UTC
Comment on attachment 369191 [details] [review]
int vs bool cleanup

I fixed the bug in a different way, but this cleanup is still good. Thanks!