aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/Scrollbar.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-06-15 14:04:46 +0200
committermarha <marha@users.sourceforge.net>2012-06-15 14:04:46 +0200
commita33de30073bfa0ee1abba186dba9fa52cf0aa23a (patch)
tree9eae122e901b9a1d1c7cfcfc2385202793a1f92a /libXaw/src/Scrollbar.c
parent7a2af605c2c2b0d2e9bbb0b161eba8842acefbcb (diff)
downloadvcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.tar.gz
vcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.tar.bz2
vcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.zip
Updated to following packages:
freetype-2.4.10 libXaw-1.0.11 openssl-1.0.1c
Diffstat (limited to 'libXaw/src/Scrollbar.c')
-rw-r--r--libXaw/src/Scrollbar.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libXaw/src/Scrollbar.c b/libXaw/src/Scrollbar.c
index 6413f0bf6..894a945d2 100644
--- a/libXaw/src/Scrollbar.c
+++ b/libXaw/src/Scrollbar.c
@@ -27,13 +27,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -372,7 +372,7 @@ FillArea(ScrollbarWidget w, int top, int bottom, int thumb)
Dimension length;
top = XawMax(1, top);
- if (w->scrollbar.orientation == XtorientHorizontal)
+ if (w->scrollbar.orientation == XtorientHorizontal)
bottom = XawMin(bottom, XtWidth(w) - 1);
else
bottom = XawMin(bottom, XtHeight(w) - 1);
@@ -385,7 +385,7 @@ FillArea(ScrollbarWidget w, int top, int bottom, int thumb)
switch(thumb) {
/* Fill the new Thumb location */
case 1:
- if (w->scrollbar.orientation == XtorientHorizontal)
+ if (w->scrollbar.orientation == XtorientHorizontal)
XFillRectangle(XtDisplay(w), XtWindow(w), w->scrollbar.gc,
top, 1, length, XtHeight(w) - 2);
else
@@ -394,7 +394,7 @@ FillArea(ScrollbarWidget w, int top, int bottom, int thumb)
break;
/* Clear the old Thumb location */
case 0:
- if (w->scrollbar.orientation == XtorientHorizontal)
+ if (w->scrollbar.orientation == XtorientHorizontal)
XClearArea(XtDisplay(w), XtWindow(w),
top, 1, length, XtHeight(w) - 2, False);
else
@@ -417,7 +417,7 @@ PaintThumb(ScrollbarWidget w)
oldbot = oldtop + w->scrollbar.shownLength;
newtop = w->scrollbar.length * w->scrollbar.top;
newbot = newtop + (int)(w->scrollbar.length * w->scrollbar.shown);
- if (newbot < newtop + (int)w->scrollbar.min_thumb)
+ if (newbot < newtop + (int)w->scrollbar.min_thumb)
newbot = newtop + w->scrollbar.min_thumb;
w->scrollbar.topLoc = newtop;
w->scrollbar.shownLength = newbot - newtop;
@@ -451,7 +451,7 @@ static void
XawScrollbarDestroy(Widget w)
{
ScrollbarWidget sbw = (ScrollbarWidget)w;
-
+
XtReleaseGC(w, sbw->scrollbar.gc);
}
@@ -529,7 +529,7 @@ XawScrollbarRealize(Widget gw, Mask *valueMask,
XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
- /*
+ /*
* The Simple widget actually stuffs the value in the valuemask
*/
(*scrollbarWidgetClass->core_class.superclass->core_class.realize)
@@ -537,7 +537,7 @@ XawScrollbarRealize(Widget gw, Mask *valueMask,
}
/*ARGSUSED*/
-static Boolean
+static Boolean
XawScrollbarSetValues(Widget current, Widget request, Widget desired,
ArgList args, Cardinal *num_args)
{