~julienxx/castor9

22f34a315b71fdeb2ac90b79f134e11b3052f07a — Julien Blanchard 3 years ago 73e84e6
Formatting
1 files changed, 15 insertions(+), 14 deletions(-)

M castor.c
M castor.c => castor.c +15 -14
@@ 739,19 739,19 @@ mkpanels(void)

	m = plmenu(0, 0, menu3, PACKN|FILLX, menuhit);
	root = plpopup(0, EXPAND, 0, 0, m);
	  p = plgroup(root, PACKN|FILLX);
	    statusp = pllabel(p, PACKN|FILLX, "castor9");
	    plplacelabel(statusp, PLACEW);
	    pllabel(p, PACKW, "Go: ");
	    entryp = plentry(p, PACKN|FILLX, 0, "", entryhit);
	  p = plgroup(root, PACKN|FILLX);
	    sp= pllabel(p, PACKN|FILLX, "");
	    plplacelabel(sp, PLACEW);
	  p = plgroup(root, PACKN|EXPAND);
	    ybar = plscrollbar(p, PACKW|USERFL);
	    xbar = plscrollbar(p, IGNORE);
	    textp = pltextview(p, PACKE|EXPAND, ZP, nil, nil);
	    plscroll(textp, xbar, ybar);
	p = plgroup(root, PACKN|FILLX);
		statusp = pllabel(p, PACKN|FILLX, "castor9");
		plplacelabel(statusp, PLACEW);
		pllabel(p, PACKW, "Go: ");
		entryp = plentry(p, PACKN|FILLX, 0, "", entryhit);
	p = plgroup(root, PACKN|FILLX);
		sp= pllabel(p, PACKN|FILLX, "");
		plplacelabel(sp, PLACEW);
	p = plgroup(root, PACKN|EXPAND);
		ybar = plscrollbar(p, PACKW|USERFL);
		xbar = plscrollbar(p, IGNORE);
		textp = pltextview(p, PACKE|EXPAND, ZP, nil, nil);
		plscroll(textp, xbar, ybar);
	plgrabkb(entryp);
}



@@ 764,7 764,8 @@ eresized(int new)
	pldraw(root, screen);
}

void scrolltext(int dy, int whence)
void 
scrolltext(int dy, int whence)
{
	Scroll s;