Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use two rows for "Connection type" in Session menu

When the "Adb" connection type was added the radio buttons got
extremely squashed together and it was no longer possible to read
their labels completely. Therefore splitting them into two rows
seemed like a good idea to me.

Since the space was quite limited already I also increased the
entire height of the config dialog box by 10. This appeared to be
the better option instead of making the "Sessions" control smaller
in its height.
  • Loading branch information...
commit 4c9f70e0bcdfabfd48681648b3e7d4c1260df4f0 1 parent 08ecbd6
@stfnm stfnm authored committed
Showing with 5 additions and 5 deletions.
  1. +2 −2 config.c
  2. +1 −1  windows/win_res.rc2
  3. +2 −2 windows/windlg.c
View
4 config.c
@@ -1266,7 +1266,7 @@ void setup_config_box(struct controlbox *b, int midsession,
ctrl_columns(s, 1, 100);
if (!backend_from_proto(PROT_SSH)) {
- ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 4,
+ ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 3,
HELPCTX(session_hostname),
config_protocolbuttons_handler, P(hp),
"Raw", 'w', I(PROT_RAW),
@@ -1275,7 +1275,7 @@ void setup_config_box(struct controlbox *b, int midsession,
"Rlogin", 'i', I(PROT_RLOGIN),
NULL);
} else {
- ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 5,
+ ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 3,
HELPCTX(session_hostname),
config_protocolbuttons_handler, P(hp),
"Raw", 'w', I(PROT_RAW),
View
2  windows/win_res.rc2
@@ -31,7 +31,7 @@ BEGIN
END
/* Accelerators used: aco */
-IDD_MAINBOX DIALOG DISCARDABLE 0, 0, 300, 252
+IDD_MAINBOX DIALOG DISCARDABLE 0, 0, 300, 262
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "PuTTY Configuration"
FONT 8, "MS Shell Dlg"
View
4 windows/windlg.c
@@ -341,7 +341,7 @@ static void create_controls(HWND hwnd, char *path)
/*
* Here we must create the basic standard controls.
*/
- ctlposinit(&cp, hwnd, 3, 3, 235);
+ ctlposinit(&cp, hwnd, 3, 3, 245);
wc = &ctrls_base;
base_id = IDCX_STDBASE;
} else {
@@ -430,7 +430,7 @@ static int CALLBACK GenericMainDlgProc(HWND hwnd, UINT msg,
r.left = 3;
r.right = r.left + 95;
r.top = 13;
- r.bottom = r.top + 219;
+ r.bottom = r.top + 229;
MapDialogRect(hwnd, &r);
treeview = CreateWindowEx(WS_EX_CLIENTEDGE, WC_TREEVIEW, "",
WS_CHILD | WS_VISIBLE |
Please sign in to comment.
Something went wrong with that request. Please try again.