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:
parent
f8310de64b
commit
77156c021a
@ -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];
|
||||||
|
@ -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 *
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user