summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 14:36:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 14:36:15 -0800
commit7e1af8b17bfb81ffd6cc5b57c8c772ff340381be (patch)
tree9a4885b8ab71ce70075c42d279521b4333fcf364 /screen.c
parentc9ef965166250a6e386871bd44db3310e556143b (diff)
Trim trailing whitespace from lines
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/screen.c b/screen.c
index f8bc17e..f27fe15 100644
--- a/screen.c
+++ b/screen.c
@@ -116,7 +116,7 @@ Scrn scrn)
BBoxAddButton(buttonbox, "print", commandWidgetClass, True);
BBoxAddButton(buttonbox, "delete", commandWidgetClass, True);
}
-
+
static void FillCompButtons(
@@ -175,7 +175,7 @@ static void MakeCommandMenu(
if (indent) { XtSetArg(args[n], XtNleftMargin, 18); n++; }
widgetclass = smeBSBObjectClass;
- } else
+ } else
widgetclass = smeLineObjectClass;
XtCreateManagedWidget(e->name, widgetclass, menu, args, n);
}
@@ -209,7 +209,7 @@ static void MakeTocAndView(Scrn scrn)
scrn->folderbuttons = BBoxCreate(scrn, "folders");
scrn->toclabel = CreateTitleBar(scrn, "tocTitlebar");
scrn->tocwidget = CreateTextSW(scrn, "toc", args, XtNumber(args));
- if (app_resources.command_button_count > 0)
+ if (app_resources.command_button_count > 0)
scrn->miscbuttons = BBoxCreate(scrn, "commandBox");
scrn->viewlabel = CreateTitleBar(scrn, "viewTitlebar");
scrn->viewwidget = CreateTextSW(scrn, "view", args, (Cardinal) 0);
@@ -431,7 +431,7 @@ Scrn ScrnFromWidget(Widget w) /* heavily used, should be efficient */
Punt("ScrnFromWidget failed!");
return NULL;
}
-
+
/* Figure out which buttons should and shouldn't be enabled in the given
* screen. This should be called whenever something major happens to the
@@ -443,7 +443,7 @@ Scrn ScrnFromWidget(Widget w) /* heavily used, should be efficient */
static void EnableCallback(Widget w, XtPointer data, XtPointer junk)
{
EnableProperButtons( (Scrn) data);
-}
+}
#define SetButton(buttonbox, name, value) \
if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \
@@ -492,10 +492,10 @@ void EnableProperButtons(Scrn scrn)
SetButton(scrn->viewbuttons, "insert",
scrn->assocmsg != NULL ? True : False);
- if (!changed)
+ if (!changed)
MsgSetCallOnChange(scrn->msg, EnableCallback,
(XtPointer) scrn);
- else
+ else
MsgSetCallOnChange(scrn->msg, (XtCallbackProc) NULL,
(XtPointer) NULL);