panellist.listbox.height = 15;
panellist.listbox.height = 20;
void macctrl_layoutbox(struct controlbox *cb, WindowPtr window,		       struct macctrls *mcs){    int i;    struct mac_layoutstate curstate;    ControlRef root;    Rect rect;    macctrl_init();    if (mac_gestalts.apprvers >= 0x100)	CreateRootControl(window, &root);#if TARGET_API_MAC_CARBON    GetPortBounds(GetWindowPort(window), &rect);#else    rect = window->portRect;#endif    mcs->window = window;    mcs->byctrl = newtree234(macctrl_cmp_byctrl);    mcs->focus = NULL;    mcs->defbutton = NULL;    mcs->canbutton = NULL;    /* Count the number of panels */    mcs->npanels = 1;    for (i = 1; i < cb->nctrlsets; i++)	if (strcmp(cb->ctrlsets[i]->pathname, cb->ctrlsets[i-1]->pathname))	    mcs->npanels++;    mcs->panels = snewn(mcs->npanels, union macctrl *);    memset(mcs->panels, 0, sizeof(*mcs->panels) * mcs->npanels);    curstate.panelnum = 0;    curstate.pos.h = rect.left + 13;    curstate.pos.v = rect.top + 13;    curstate.width = 160;    panellist.listbox.type = CTRL_LISTBOX;    panellist.listbox.handler = &panellist_handler;    panellist.listbox.height = 15;    panellist.listbox.percentwidth = 100;    macctrl_listbox(mcs, window, &curstate, &panellist);    curstate.pos.h = rect.left + 13 + 160 + 13;    curstate.pos.v = rect.bottom - 33;    curstate.width = rect.right - (rect.left + 13 + 160) - (13 * 2);    for (i = 0; i < cb->nctrlsets; i++) {	if (i > 0 && strcmp(cb->ctrlsets[i]->pathname,			    cb->ctrlsets[i-1]->pathname)) {	    curstate.pos.v = rect.top + 13;	    curstate.panelnum++;	    assert(curstate.panelnum < mcs->npanels);	    dlg_listbox_add(&panellist, mcs, cb->ctrlsets[i]->pathname);	}	macctrl_layoutset(&curstate, cb->ctrlsets[i], window, mcs);    }    macctrl_switchtopanel(mcs, 1);    /* 14 = proxies, 19 = portfwd, 20 = SSH bugs */}