diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:40:19 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:40:19 -0800 |
commit | 684e4321fa7e96a61f45dc133816ab92a173a52d (patch) | |
tree | c9e0e76fa4deb06d7ca0852c9313e2eb7fb1f3b1 /choice.c | |
parent | 63e7fce72d704036016258b2cb55c5624f571d92 (diff) |
Trim trailing whitespace from lines
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'choice.c')
-rw-r--r-- | choice.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -52,8 +52,8 @@ create_choice(Widget w, XgcStuff *info) ** toggle widget is selected. */ /* ArgList for the label widget */ - static Arg labelargs[] = { - {XtNborderWidth, (XtArgVal) 0}, + static Arg labelargs[] = { + {XtNborderWidth, (XtArgVal) 0}, {XtNjustify, (XtArgVal) XtJustifyRight}, {XtNvertDistance, (XtArgVal) 4} }; @@ -76,7 +76,7 @@ create_choice(Widget w, XgcStuff *info) /* Allocate space for the widgets and initialize choice */ choice = (ChoiceDesc *) XtMalloc(sizeof(ChoiceDesc)); - choice->widgets = (WidgetList) XtMalloc(sizeof(Widget) * + choice->widgets = (WidgetList) XtMalloc(sizeof(Widget) * info->choice.num_toggles); choice->size = info->choice.num_toggles; choice->label = XtCreateManagedWidget(info->choice.name,labelWidgetClass,w, @@ -97,8 +97,8 @@ create_choice(Widget w, XgcStuff *info) else { toggleargs[4].value = (XtArgVal) choice->widgets[0]; /* are we starting a new row? */ - if (info->choice.columns > 0 && - i > 1 && + if (info->choice.columns > 0 && + i > 1 && (i % (info->choice.columns) == 0)) { toggleargs[0].value = (XtArgVal) choice->label; /* under the appropriate toggle */ @@ -130,15 +130,15 @@ create_choice(Widget w, XgcStuff *info) strcat(text, (info->data)[i].text); strcat(text, "\n"); callbacklist[0].closure = (caddr_t) text; - + /* Create it finally */ - choice->widgets[i] = XtCreateManagedWidget((info->data[i]).name, + choice->widgets[i] = XtCreateManagedWidget((info->data[i]).name, toggleWidgetClass, w, toggleargs, XtNumber(toggleargs)); } - + /* The toggle widgets have all been created; ** now make the all the same width if that's ** what we want to do. */ |