1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Drop unused listbox widget height stuff.

This commit is contained in:
Laurent MONIN 2006-01-05 11:50:42 +01:00 committed by Laurent MONIN
parent f8310de64b
commit 77156c021a
4 changed files with 3 additions and 10 deletions

View File

@ -317,7 +317,7 @@ hierbox_browser(struct hierbox_browser *browser, struct session *ses)
dlg->udata = ses; dlg->udata = ses;
dlg->udata2 = browser; dlg->udata2 = browser;
add_dlg_listbox(dlg, 12, listbox_data); add_dlg_listbox(dlg, listbox_data);
for (button = 0; button < browser->buttons_size; button++) { for (button = 0; button < browser->buttons_size; button++) {
struct hierbox_browser_button *but = &browser->buttons[button]; struct hierbox_browser_button *but = &browser->buttons[button];

View File

@ -24,14 +24,12 @@
#define VERTICAL_LISTBOX_MARGIN 3 #define VERTICAL_LISTBOX_MARGIN 3
void void
add_dlg_listbox(struct dialog *dlg, int height, void *box_data) add_dlg_listbox(struct dialog *dlg, void *box_data)
{ {
struct widget *widget = &dlg->widgets[dlg->number_of_widgets++]; struct widget *widget = &dlg->widgets[dlg->number_of_widgets++];
widget->type = WIDGET_LISTBOX; widget->type = WIDGET_LISTBOX;
widget->data = box_data; widget->data = box_data;
widget->info.listbox.height = height;
} }
struct listbox_data * struct listbox_data *

View File

@ -11,12 +11,8 @@ struct terminal;
struct uri; struct uri;
struct widget_data; struct widget_data;
struct widget_info_listbox {
int height;
};
void add_dlg_listbox(struct dialog *dlg, void *box_data);
void add_dlg_listbox(struct dialog *dlg, int height, void *box_data);
enum listbox_match { enum listbox_match {
LISTBOX_MATCH_OK, LISTBOX_MATCH_OK,

View File

@ -42,7 +42,6 @@ struct widget {
union { union {
struct widget_info_checkbox checkbox; struct widget_info_checkbox checkbox;
struct widget_info_field field; struct widget_info_field field;
struct widget_info_listbox listbox;
struct widget_info_button button; struct widget_info_button button;
struct widget_info_text text; struct widget_info_text text;
} info; } info;