]>
Commit | Line | Data |
---|---|---|
ddd419a0 | 1 | --- XFree86-4.0/xc/lib/Xaw/Scrollbar.c.foo Mon May 15 17:04:02 2000 |
2 | +++ XFree86-4.0/xc/lib/Xaw/Scrollbar.c Mon May 15 17:07:30 2000 | |
3 | @@ -831,6 +831,10 @@ | |
4 | NotifyThumb(Widget gw, XEvent *event, String *params, Cardinal *num_params) | |
5 | { | |
6 | ScrollbarWidget w = (ScrollbarWidget)gw; | |
7 | + union { | |
8 | + XtPointer xt_pt; | |
9 | + float xt_top; | |
10 | + } foo; | |
11 | ||
12 | if (w->scrollbar.direction == 0) /* if no StartScroll */ | |
13 | return; | |
14 | @@ -841,7 +845,10 @@ | |
15 | /* thumbProc is not pretty, but is necessary for backwards | |
16 | compatibility on those architectures for which it work{s,ed}; | |
17 | the intent is to pass a (truncated) float by value. */ | |
18 | - XtCallCallbacks(gw, XtNthumbProc, *(XtPointer*)&w->scrollbar.top); | |
19 | + | |
20 | + foo.xt_top = w->scrollbar.top; | |
21 | + | |
22 | + XtCallCallbacks(gw, XtNthumbProc, foo.xt_pt); | |
23 | XtCallCallbacks(gw, XtNjumpProc, (XtPointer)&w->scrollbar.top); | |
24 | ||
25 | PaintThumb(w); |