summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-08-31 12:46:45 +0200
committerRobin Gareus <robin@gareus.org>2014-08-31 12:46:45 +0200
commitdb34d9a556c5bcf62259656e6114f340bb444ab7 (patch)
treec1a742fc4a8bc2da7a6f1025c24c779c92065fd0 /libs/clearlooks-newer
parent42e6c9c75d379918d9a9a8cbe37b243ffbb6e34c (diff)
proper round corners on focused TextEntry
IFF [xy]thickness is set > 2 for given Entry. It seems gtk draws a base-color rectangle on top, after clearlooks_draw_entry() is called. This fills the complete area and voids previous rounded rectangles in clearlooks_draw_entry(). setting [xy]thickness decreases the size of the base rectangle.
Diffstat (limited to 'libs/clearlooks-newer')
-rw-r--r--libs/clearlooks-newer/clearlooks_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/clearlooks-newer/clearlooks_draw.c b/libs/clearlooks-newer/clearlooks_draw.c
index 1f98485ce5..b6db6062e9 100644
--- a/libs/clearlooks-newer/clearlooks_draw.c
+++ b/libs/clearlooks-newer/clearlooks_draw.c
@@ -406,9 +406,9 @@ clearlooks_draw_entry (cairo_t *cr,
/* Draw the inner shadow */
if (params->focus)
{
- /* ge_cairo_rounded_rectangle (cr, 2, 2, width-5, height-5, RADIUS-1, params->corners); */
+ ge_cairo_rounded_rectangle (cr, 2, 2, width-5, height-5, radius, params->corners);
ge_cairo_set_color (cr, &colors->spot[0]);
- ge_cairo_stroke_rectangle (cr, 2, 2, width-5, height-5);
+ cairo_fill(cr);
}
else
{