summaryrefslogtreecommitdiff
path: root/plugins/gtkui/mainplaylist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-10 21:08:08 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-10 21:08:08 +0200
commit30f8d8a5dc29c3fea1b01ac48ff8c562001843ab (patch)
treeabbef1427b719d14873a31db189b9441dbb0647a /plugins/gtkui/mainplaylist.c
parente7c2d026179ee78590fb017a326bd35374702ef4 (diff)
gtkui: fixed group title height (was hardcoded)
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r--plugins/gtkui/mainplaylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c
index e093cee6..617e81cc 100644
--- a/plugins/gtkui/mainplaylist.c
+++ b/plugins/gtkui/mainplaylist.c
@@ -182,7 +182,7 @@ void main_draw_group_title (DdbListview *listview, cairo_t *drawable, DdbListvie
}
int ew, eh;
draw_get_text_extents (&listview->listctx, str, -1, &ew, &eh);
- draw_text (&listview->listctx, x + 5, y + height/2 - draw_get_font_size (&listview->listctx)/2 - 2, ew+5, 0, str);
+ draw_text (&listview->listctx, x + 5, y + height/2 - draw_get_listview_rowheight (&listview->listctx)/2 + 3, ew+5, 0, str);
draw_line (&listview->listctx, x + 5 + ew + 3, y+height/2, x + width, y+height/2);
}
}