From: Eric S. Raymond Date: Thu, 14 Sep 2006 02:39:28 +0000 (+0000) Subject: More reasonably-sized windows. X-Git-Tag: 2.0~274 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=304e25e71f7d1eb24c2fa373e86b619358dffee6;p=super-star-trek.git More reasonably-sized windows. --- diff --git a/src/xio.c b/src/xio.c index 4ba585f..6985cc9 100644 --- a/src/xio.c +++ b/src/xio.c @@ -77,6 +77,9 @@ static struct cmd_t commands[] = { {"Help", noargs_proc, &misc, 0}, }; +#define MAXWIDTH 640 +#define TEXTHEIGHT 200 + int main(int argc, char **argv) { struct cmd_t *cp; @@ -88,21 +91,23 @@ int main(int argc, char **argv) form = XtVaCreateManagedWidget("form", formWidgetClass, toplevel, NULL); /* the command window */ text = XtVaCreateManagedWidget("text", asciiTextWidgetClass, form, - XtNwidth, 400, XtNheight, 200, + XtNwidth, MAXWIDTH, XtNheight, TEXTHEIGHT, NULL); XtVaSetValues(text, XtNeditType,XawtextRead, XtNdisplayCaret,False, NULL); /* The button panels */ navigation = XtVaCreateManagedWidget("navigation", - boxWidgetClass, form, - XtNfromVert, text, - XtNorientation, XtorientHorizontal, - NULL); + boxWidgetClass, form, + XtNborderWidth, 0, + XtNfromVert, text, + XtNorientation, XtorientHorizontal, + NULL); navlabel = XtVaCreateManagedWidget("Navigation: ", labelWidgetClass, navigation, XtNborderWidth, 0, NULL); weapons = XtVaCreateManagedWidget("weapons", boxWidgetClass, form, + XtNborderWidth, 0, XtNfromVert, navigation, XtNorientation, XtorientHorizontal, NULL); @@ -112,6 +117,7 @@ int main(int argc, char **argv) NULL); status = XtVaCreateManagedWidget("status", boxWidgetClass, form, + XtNborderWidth, 0, XtNfromVert, weapons, XtNorientation, XtorientHorizontal, NULL); @@ -121,6 +127,7 @@ int main(int argc, char **argv) NULL); planets = XtVaCreateManagedWidget("planets", boxWidgetClass, form, + XtNborderWidth, 0, XtNfromVert, status, XtNorientation, XtorientHorizontal, NULL); @@ -130,6 +137,7 @@ int main(int argc, char **argv) NULL); misc = XtVaCreateManagedWidget("misc", boxWidgetClass, form, + XtNborderWidth, 0, XtNfromVert, planets, XtNorientation, XtorientHorizontal, NULL);