1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Yesterday's proxy enhancements also slightly nadgered the config

box, in that it started to expand under the weight of proxy options.
Now fixed, by folding the SOCKS version selector into the general
proxy type selector so there's one single 5- or 6-way radio button
set split over two lines. settings.c has of course grown a backwards
compatibility wart to deal with legacy config data.

[originally from svn r3168]
This commit is contained in:
Simon Tatham
2003-05-07 12:07:23 +00:00
parent ef53af1e8d
commit 8460ecd27d
6 changed files with 39 additions and 42 deletions

View File

@ -130,7 +130,7 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *win)
* Unix supports a local-command proxy. This also means we must
* adjust the text on the `Telnet command' control.
*/
s = ctrl_getset(b, "Connection/Proxy", "basics", "Proxy basics");
s = ctrl_getset(b, "Connection/Proxy", "basics", NULL);
{
int i;
for (i = 0; i < s->ncontrols; i++) {
@ -139,7 +139,6 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *win)
c->generic.context.i == offsetof(Config, proxy_type)) {
assert(c->generic.handler == dlg_stdradiobutton_handler);
c->radio.nbuttons++;
c->radio.ncolumns++;
c->radio.buttons =
sresize(c->radio.buttons, c->radio.nbuttons, char *);
c->radio.buttons[c->radio.nbuttons-1] =
@ -150,11 +149,7 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *win)
break;
}
}
}
s = ctrl_getset(b, "Connection/Proxy", "misc",
"Miscellaneous proxy settings");
{
int i;
for (i = 0; i < s->ncontrols; i++) {
c = s->ctrls[i];
if (c->generic.type == CTRL_EDITBOX &&