Skip to content
Snippets Groups Projects
Commit c5c5edf0 authored by Simon Tatham's avatar Simon Tatham
Browse files

Patch from Rene Post: ctrl_{drag,drop}list both now initialise the

same set of structure fields that the ordinary ctrl_listbox does.

[originally from svn r3189]
parent f2834e06
No related branches found
No related tags found
No related merge requests found
...@@ -362,6 +362,8 @@ union control *ctrl_droplist(struct controlset *s, char *label, char shortcut, ...@@ -362,6 +362,8 @@ union control *ctrl_droplist(struct controlset *s, char *label, char shortcut,
c->listbox.draglist = 0; c->listbox.draglist = 0;
c->listbox.multisel = 0; c->listbox.multisel = 0;
c->listbox.percentwidth = percentage; c->listbox.percentwidth = percentage;
c->listbox.ncols = 0;
c->listbox.percentages = NULL;
return c; return c;
} }
...@@ -376,6 +378,8 @@ union control *ctrl_draglist(struct controlset *s,char *label,char shortcut, ...@@ -376,6 +378,8 @@ union control *ctrl_draglist(struct controlset *s,char *label,char shortcut,
c->listbox.draglist = 1; c->listbox.draglist = 1;
c->listbox.multisel = 0; c->listbox.multisel = 0;
c->listbox.percentwidth = 100; c->listbox.percentwidth = 100;
c->listbox.ncols = 0;
c->listbox.percentages = NULL;
return c; return c;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment