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 684814 - Fix GnomeRRLabeler drawing artifacts
Fix GnomeRRLabeler drawing artifacts
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
unspecified
Other All
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
3.6.1
Depends on:
Blocks:
 
 
Reported: 2012-09-25 20:25 UTC by Cosimo Cecchi
Modified: 2012-09-26 16:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rr-labeler: clear surface before drawing frame and background (953 bytes, patch)
2012-09-25 20:25 UTC, Cosimo Cecchi
committed Details | Review
rr-labeler: use a shape region if the widget is not composited (4.62 KB, patch)
2012-09-25 20:26 UTC, Cosimo Cecchi
committed Details | Review
rr-labeler: scale the corner radii when drawing the fill (1.32 KB, patch)
2012-09-25 20:26 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2012-09-25 20:25:56 UTC
GnomeRRLabeler has a few drawing glitches:
- a gray area appears below rounded corners
- a small gray glitch can be observed between the stroke and the fill

While I'm at it, make it so this also works in non-composited mode
Comment 1 Cosimo Cecchi 2012-09-25 20:25:58 UTC
Created attachment 225174 [details] [review]
rr-labeler: clear surface before drawing frame and background

To avoid gray areas extending below the edges.
Comment 2 Cosimo Cecchi 2012-09-25 20:26:00 UTC
Created attachment 225175 [details] [review]
rr-labeler: use a shape region if the widget is not composited

Stolen pretty much as-is from the identical code in GtkTooltip. This
ensures the labels always stay round and with no artifacts below the
corners even in non-composited environments.
Comment 3 Cosimo Cecchi 2012-09-25 20:26:02 UTC
Created attachment 225176 [details] [review]
rr-labeler: scale the corner radii when drawing the fill

We need to scale down the corner radii of the fill when drawing it on
top of the frame, or its corners will not perfectly match those of the
stroke, leaving some unpleasant transparent artifacts around the
corners.
Comment 4 Federico Mena Quintero 2012-09-26 01:10:18 UTC
Go for it!
Comment 5 Cosimo Cecchi 2012-09-26 15:58:37 UTC
(In reply to comment #4)
> Go for it!

Does this mean "accepted-commit_now"? :)
Comment 6 Cosimo Cecchi 2012-09-26 16:44:44 UTC
Attachment 225174 [details] pushed as 41a1074 - rr-labeler: clear surface before drawing frame and background
Attachment 225175 [details] pushed as f92b50c - rr-labeler: use a shape region if the widget is not composited
Attachment 225176 [details] pushed as 5edcac4 - rr-labeler: scale the corner radii when drawing the fill

Pushed to master, thanks.