From: Eric S. Raymond Date: Wed, 13 Sep 2006 23:52:07 +0000 (+0000) Subject: Get rid of some ugly borders. X-Git-Tag: 2.0~275 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=32702accdb97f90e3f89ac388ea38655d8f4729c;p=super-star-trek.git Get rid of some ugly borders. --- diff --git a/src/xio.c b/src/xio.c index 9c5e03c..4ba585f 100644 --- a/src/xio.c +++ b/src/xio.c @@ -11,6 +11,7 @@ static XtAppContext app_context; static Widget toplevel, text, form; static Widget navigation, weapons, status, planets, misc; +static Widget navlabel, weaplabel, statlabel, planlabel, misclabel; static String fallback[] = { /* text window resources */ @@ -96,26 +97,46 @@ int main(int argc, char **argv) XtNfromVert, text, XtNorientation, XtorientHorizontal, NULL); + navlabel = XtVaCreateManagedWidget("Navigation: ", + labelWidgetClass, navigation, + XtNborderWidth, 0, + NULL); weapons = XtVaCreateManagedWidget("weapons", boxWidgetClass, form, XtNfromVert, navigation, XtNorientation, XtorientHorizontal, NULL); + weaplabel = XtVaCreateManagedWidget("Weapons: ", + labelWidgetClass, weapons, + XtNborderWidth, 0, + NULL); status = XtVaCreateManagedWidget("status", boxWidgetClass, form, XtNfromVert, weapons, XtNorientation, XtorientHorizontal, NULL); + statlabel = XtVaCreateManagedWidget("Status: ", + labelWidgetClass, status, + XtNborderWidth, 0, + NULL); planets = XtVaCreateManagedWidget("planets", boxWidgetClass, form, XtNfromVert, status, XtNorientation, XtorientHorizontal, NULL); + planlabel = XtVaCreateManagedWidget("Planets: ", + labelWidgetClass, planets, + XtNborderWidth, 0, + NULL); misc = XtVaCreateManagedWidget("misc", boxWidgetClass, form, XtNfromVert, planets, XtNorientation, XtorientHorizontal, NULL); + misclabel = XtVaCreateManagedWidget("Miscellaneous:", + labelWidgetClass, misc, + XtNborderWidth, 0, + NULL); for (cp = commands; cp < commands + sizeof(commands)/sizeof(commands[0]); cp++) { cp->widget = XtVaCreateManagedWidget(cp->name, commandWidgetClass,