mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[checkbox] Removed commented code
This commit is contained in:
parent
efe2979ca8
commit
cb35bfe0b9
@ -50,10 +50,6 @@ dlg_format_checkbox(struct dialog_data *dlg_data,
|
||||
|
||||
if (text && *text) {
|
||||
if (rw) *rw -= CHECKBOX_LS;
|
||||
// dlg_format_text_do(dlg_data, text, x + CHECKBOX_LS, y,
|
||||
// w - CHECKBOX_LS, rw,
|
||||
// get_bfu_color(term, "dialog.checkbox-label"),
|
||||
// align, format_only);
|
||||
dlg_format_text_do_node(dlg_data, text, x + CHECKBOX_LS, y,
|
||||
w - CHECKBOX_LS, rw,
|
||||
get_bfu_color_node(term, "dialog.checkbox-label"),
|
||||
@ -67,20 +63,16 @@ static widget_handler_status_T
|
||||
display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
{
|
||||
struct terminal *term = dlg_data->win->term;
|
||||
// struct color_pair *color;
|
||||
unsigned int color_node;
|
||||
const char *text;
|
||||
struct el_box *pos = &widget_data->box;
|
||||
int selected = is_selected_widget(dlg_data, widget_data);
|
||||
|
||||
if (selected) {
|
||||
// color = get_bfu_color(term, "dialog.checkbox-selected");
|
||||
color_node = get_bfu_color_node(term, "dialog.checkbox-selected");
|
||||
} else {
|
||||
// color = get_bfu_color(term, "dialog.checkbox");
|
||||
color_node = get_bfu_color_node(term, "dialog.checkbox");
|
||||
}
|
||||
// if (!color) return EVENT_PROCESSED;
|
||||
if (!color_node) return EVENT_PROCESSED;
|
||||
|
||||
if (widget_data->info.checkbox.checked)
|
||||
@ -88,7 +80,6 @@ display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
else
|
||||
text = widget_data->widget->info.checkbox.gid ? "( )" : "[ ]";
|
||||
|
||||
// draw_dlg_text(dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color);
|
||||
draw_dlg_text_node(dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color_node);
|
||||
|
||||
if (selected) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user