]> git.pld-linux.org Git - packages/Xaw3d.git/blob - Xaw3d.patch
- new Summary.
[packages/Xaw3d.git] / Xaw3d.patch
1 --- Xaw3d-1.5/xc/lib/Xaw3d/Scrollbar.c  Tue Oct 15 07:41:21 1996
2 +++ Xaw3d-1.5.ia64/xc/lib/Xaw3d/Scrollbar.c     Tue May  9 07:02:52 2000
3 @@ -1178,7 +1178,11 @@
4      Cardinal *num_params;      /* unused */
5  {
6      register ScrollbarWidget sbw = (ScrollbarWidget) w;
7 -    float top = sbw->scrollbar.top;
8 +    union {
9 +       XtPointer pt;
10 +       float     top;
11 +    } foo;
12 +    foo.top = sbw->scrollbar.top;
13  
14  #ifndef ARROW_SCROLLBAR
15      if (sbw->scrollbar.direction == 0) return; /* if no StartScroll */
16 @@ -1204,10 +1208,10 @@
17         there is no problem since in this case there is always a constant
18         integer number of pixels the thumb must be moved in order to scroll
19         to the next line/column. */
20 -    top += 0.0001;
21 +    foo.top += 0.0001;
22  #endif
23 -    XtCallCallbacks (w, XtNthumbProc, *(XtPointer*)&top);
24 -    XtCallCallbacks (w, XtNjumpProc, (XtPointer)&top);
25 +    XtCallCallbacks (w, XtNthumbProc, foo.pt);
26 +    XtCallCallbacks (w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top);
27  }
28  
29
30
This page took 0.030241 seconds and 3 git commands to generate.