From 28c0121f51dce3dbf22e206ca7dd2d29f28f21d7 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 28 Mar 2011 22:00:14 +0200 Subject: fixed weird rendering or right-to-left text in group titles --- plugins/gtkui/mainplaylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 9342f257..9a774eb4 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -173,8 +173,8 @@ void main_draw_group_title (DdbListview *listview, GdkDrawable *drawable, DdbLis draw_set_fg_color (rgb); } int ew, eh; - draw_text (x + 5, y + height/2 - draw_get_font_size ()/2 - 2, width-10, 0, str); draw_get_text_extents (str, -1, &ew, &eh); + draw_text (x + 5, y + height/2 - draw_get_font_size ()/2 - 2, ew+5, 0, str); draw_line (x + 5 + ew + 3, y+height/2, x + width, y+height/2); } } -- cgit v1.2.3