diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-07 06:33:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-07 06:33:43 +0000 |
| commit | 82b2f0aa7a1723632e8d3cf7dc772e4bdb66868a (patch) | |
| tree | fd0462371bc35919c778b157b31cb0aa7849af48 /render/font.c | |
| parent | 15007a62c2b2bd9b55ad2c96f1cd7a45c79a0afc (diff) | |
popups fixes. if the text for the popup is empty now, there wont be extra padding for it. desktop name fixes.
Diffstat (limited to 'render/font.c')
| -rw-r--r-- | render/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/font.c b/render/font.c index 50b4208f..1ca1b768 100644 --- a/render/font.c +++ b/render/font.c @@ -137,7 +137,7 @@ static void font_measure_full(const RrFont *f, const gchar *str, pango_layout_set_text(f->layout, str, -1); pango_layout_set_width(f->layout, -1); pango_layout_get_pixel_extents(f->layout, NULL, &rect); - *x = rect.width + ABS(shadow_x); + *x = rect.width + ABS(shadow_x) + 4 /* we put a 2 px edge on each side */; *y = rect.height + ABS(shadow_y); } |
