Highlight selected item of WRadio using widget width not item width.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-09-25 20:14:26 +04:00
parent 64b126fabf
commit 329f473d32

View File

@ -461,6 +461,7 @@ radio_callback (Widget * w, widget_msg_t msg, int parm)
const gboolean focused = (i == r->pos && msg == WIDGET_FOCUS);
widget_selectcolor (w, focused, FALSE);
widget_move (&r->widget, i, 0);
tty_draw_hline (r->widget.y + i, r->widget.x, ' ', r->widget.cols);
tty_print_string ((r->sel == i) ? "(*) " : "( ) ");
draw_hotkey (w, r->texts[i], focused);
}