Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / editors / nedit / patches / patch-source_text.c
blob3eb567286d77a0957f6d04f3752392763a9825d9
1 $NetBSD$
3 Call XtVaGetValues correctly.
5 --- source/text.c~ 2004-07-28 18:02:03.000000000 +0000
6 +++ source/text.c
7 @@ -3126,7 +3126,7 @@ static void pageRightAP(Widget w, XEvent
8 cancelDrag(w);
9 if (hasKey("scrollbar", args, nArgs)) {
10 XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax,
11 - XmNsliderSize, &sliderSize, 0);
12 + XmNsliderSize, &sliderSize, (char*)NULL);
13 horizOffset = min(textD->horizOffset + textD->width, sliderMax - sliderSize);
14 if (textD->horizOffset == horizOffset) {
15 ringIfNecessary(silent, w);
16 @@ -3218,7 +3218,7 @@ static void scrollLeftAP(Widget w, XEven
17 if (*nArgs == 0 || sscanf(args[0], "%d", &nPixels) != 1)
18 return;
19 XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax,
20 - XmNsliderSize, &sliderSize, 0);
21 + XmNsliderSize, &sliderSize, (char *)NULL);
22 horizOffset = min(max(0, textD->horizOffset - nPixels), sliderMax - sliderSize);
23 if (textD->horizOffset != horizOffset) {
24 TextDSetScroll(textD, textD->topLineNum, horizOffset);
25 @@ -3235,7 +3235,7 @@ static void scrollRightAP(Widget w, XEve
26 if (*nArgs == 0 || sscanf(args[0], "%d", &nPixels) != 1)
27 return;
28 XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax,
29 - XmNsliderSize, &sliderSize, 0);
30 + XmNsliderSize, &sliderSize, (char *)NULL);
31 horizOffset = min(max(0, textD->horizOffset + nPixels), sliderMax - sliderSize);
32 if (textD->horizOffset != horizOffset) {
33 TextDSetScroll(textD, textD->topLineNum, horizOffset);