mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 21:12:07 +03:00
Highlight selected item of WRadio using widget width not item width.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
64b126fabf
commit
329f473d32
@ -461,6 +461,7 @@ radio_callback (Widget * w, widget_msg_t msg, int parm)
|
|||||||
const gboolean focused = (i == r->pos && msg == WIDGET_FOCUS);
|
const gboolean focused = (i == r->pos && msg == WIDGET_FOCUS);
|
||||||
widget_selectcolor (w, focused, FALSE);
|
widget_selectcolor (w, focused, FALSE);
|
||||||
widget_move (&r->widget, i, 0);
|
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) ? "(*) " : "( ) ");
|
tty_print_string ((r->sel == i) ? "(*) " : "( ) ");
|
||||||
draw_hotkey (w, r->texts[i], focused);
|
draw_hotkey (w, r->texts[i], focused);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user