mirror of https://github.com/MidnightCommander/mc
(check_callback): clean unneeded type casting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b0e3552847
commit
e07408e8c7
|
@ -76,18 +76,18 @@ check_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
|||
c->state ^= C_BOOL;
|
||||
c->state ^= C_CHANGE;
|
||||
send_message (w, sender, MSG_FOCUS, ' ', data);
|
||||
send_message (WIDGET (w)->owner, w, MSG_NOTIFY, 0, NULL);
|
||||
send_message (w->owner, w, MSG_NOTIFY, 0, NULL);
|
||||
return MSG_HANDLED;
|
||||
|
||||
case MSG_CURSOR:
|
||||
widget_move (c, 0, 1);
|
||||
widget_move (w, 0, 1);
|
||||
return MSG_HANDLED;
|
||||
|
||||
case MSG_FOCUS:
|
||||
case MSG_UNFOCUS:
|
||||
case MSG_DRAW:
|
||||
widget_selectcolor (w, msg == MSG_FOCUS, FALSE);
|
||||
widget_move (c, 0, 0);
|
||||
widget_move (w, 0, 0);
|
||||
tty_print_string ((c->state & C_BOOL) ? "[x] " : "[ ] ");
|
||||
hotkey_draw (w, c->text, msg == MSG_FOCUS);
|
||||
return MSG_HANDLED;
|
||||
|
|
Loading…
Reference in New Issue