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
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);
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
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
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;
XawScrollbarDestroy(Widget w)
{
ScrollbarWidget sbw = (ScrollbarWidget)w;
-
+
XtReleaseGC(w, sbw->scrollbar.gc);
}
XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
- /*
+ /*
* The Simple widget actually stuffs the value in the valuemask
*/
(*scrollbarWidgetClass->core_class.superclass->core_class.realize)
}
/*ARGSUSED*/
-static Boolean
+static Boolean
XawScrollbarSetValues(Widget current, Widget request, Widget desired,
ArgList args, Cardinal *num_args)
{