mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Rename done_listbox_item parameter box_item to item.
This commit is contained in:
parent
fca29e75f8
commit
963452c65f
@ -92,33 +92,33 @@ replace_listbox_item(struct listbox_item *item, struct listbox_data *data)
|
||||
}
|
||||
|
||||
void
|
||||
done_listbox_item(struct hierbox_browser *browser, struct listbox_item *box_item)
|
||||
done_listbox_item(struct hierbox_browser *browser, struct listbox_item *item)
|
||||
{
|
||||
struct listbox_data *box_data;
|
||||
|
||||
assert(box_item && list_empty(box_item->child));
|
||||
assert(item && list_empty(item->child));
|
||||
|
||||
/* The option dialog needs this test */
|
||||
if (box_item->next) {
|
||||
if (item->next) {
|
||||
/* If we are removing the top or the selected box
|
||||
* we have to figure out a replacement. */
|
||||
|
||||
foreach (box_data, browser->boxes) {
|
||||
if (box_data->sel == box_item)
|
||||
box_data->sel = replace_listbox_item(box_item,
|
||||
if (box_data->sel == item)
|
||||
box_data->sel = replace_listbox_item(item,
|
||||
box_data);
|
||||
|
||||
if (box_data->top == box_item)
|
||||
box_data->top = replace_listbox_item(box_item,
|
||||
if (box_data->top == item)
|
||||
box_data->top = replace_listbox_item(item,
|
||||
box_data);
|
||||
}
|
||||
|
||||
del_from_list(box_item);
|
||||
del_from_list(item);
|
||||
|
||||
update_hierbox_browser(browser);
|
||||
}
|
||||
|
||||
mem_free(box_item);
|
||||
mem_free(item);
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ struct hierbox_browser {
|
||||
ops, \
|
||||
}
|
||||
|
||||
void done_listbox_item(struct hierbox_browser *browser, struct listbox_item *box_item);
|
||||
void done_listbox_item(struct hierbox_browser *browser, struct listbox_item *item);
|
||||
void update_hierbox_browser(struct hierbox_browser *browser);
|
||||
|
||||
struct listbox_item *
|
||||
|
Loading…
Reference in New Issue
Block a user