--- source/menu.c +++ source/menu.c 2008/11/01 10:12:04 @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: menu.c,v 1.115 2004/09/15 22:50:57 n8gray Exp $"; +static const char CVSID[] = "$Id: menu.c,v 1.1 2008/11/01 10:11:21 drahn Exp drahn $"; /******************************************************************************* * * * menu.c -- Nirvana Editor menus * @@ -1242,7 +1242,7 @@ Widget menuItem = createMenuItem( parent, name, label, mnemonic, callback, cbArg, mode ); - XtVaSetValues( menuItem, XmNuserData, topic, 0 ); + XtVaSetValues( menuItem, XmNuserData, topic, NULL ); return menuItem; } @@ -1254,7 +1254,7 @@ HidePointerOnKeyedEvent(WidgetToWindow(MENU_WIDGET(menuItem))->lastFocus, ((XmAnyCallbackStruct *)callData)->event); - XtVaGetValues( menuItem, XmNuserData, &topic, 0 ); + XtVaGetValues( menuItem, XmNuserData, &topic, NULL ); Help(topic); } --- source/search.c +++ source/search.c 2008/11/01 10:13:15 @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: search.c,v 1.71 2004/08/01 10:06:11 yooden Exp $"; +static const char CVSID[] = "$Id: search.c,v 1.1 2008/11/01 10:12:55 drahn Exp drahn $"; /******************************************************************************* * * * search.c -- Nirvana Editor search and replace functions * @@ -1042,7 +1042,7 @@ XtAddCallback(replaceBtn, XmNactivateCallback, (XtCallbackProc)replaceCB, window); XmStringFree(st1); XtManageChild(replaceBtn); - XtVaGetValues(replaceBtn, XmNshadowThickness, &shadowThickness, 0); + XtVaGetValues(replaceBtn, XmNshadowThickness, &shadowThickness, NULL); defaultBtnOffset = shadowThickness + 4; argcnt = 0; --- source/text.c +++ source/text.c 2008/11/01 10:14:36 @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: text.c,v 1.48 2004/07/28 18:02:03 n8gray Exp $"; +static const char CVSID[] = "$Id: text.c,v 1.1 2008/11/01 10:13:38 drahn Exp drahn $"; /******************************************************************************* * * * text.c - Display text from a text buffer * @@ -3126,7 +3126,7 @@ cancelDrag(w); if (hasKey("scrollbar", args, nArgs)) { XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax, - XmNsliderSize, &sliderSize, 0); + XmNsliderSize, &sliderSize, NULL); horizOffset = min(textD->horizOffset + textD->width, sliderMax - sliderSize); if (textD->horizOffset == horizOffset) { ringIfNecessary(silent, w); @@ -3218,7 +3218,7 @@ if (*nArgs == 0 || sscanf(args[0], "%d", &nPixels) != 1) return; XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax, - XmNsliderSize, &sliderSize, 0); + XmNsliderSize, &sliderSize, NULL); horizOffset = min(max(0, textD->horizOffset - nPixels), sliderMax - sliderSize); if (textD->horizOffset != horizOffset) { TextDSetScroll(textD, textD->topLineNum, horizOffset); @@ -3235,7 +3235,7 @@ if (*nArgs == 0 || sscanf(args[0], "%d", &nPixels) != 1) return; XtVaGetValues(textD->hScrollBar, XmNmaximum, &sliderMax, - XmNsliderSize, &sliderSize, 0); + XmNsliderSize, &sliderSize, NULL); horizOffset = min(max(0, textD->horizOffset + nPixels), sliderMax - sliderSize); if (textD->horizOffset != horizOffset) { TextDSetScroll(textD, textD->topLineNum, horizOffset); --- source/window.c +++ source/window.c 2008/11/01 10:15:20 @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: window.c,v 1.174 2004/09/15 22:50:58 n8gray Exp $"; +static const char CVSID[] = "$Id: window.c,v 1.1 2008/11/01 10:14:41 drahn Exp drahn $"; /******************************************************************************* * * * window.c -- Nirvana Editor window creation/deletion * @@ -1157,7 +1157,7 @@ if (window->backlightChars) { XtVaSetValues(text, textNbacklightCharTypes, - window->backlightCharTypes, 0); + window->backlightCharTypes, NULL); } XtManageChild(text); window->textPanes[window->nPanes++] = text; @@ -3016,10 +3016,10 @@ window->backlightCharTypes = NULL; XtVaSetValues(window->textArea, - textNbacklightCharTypes, window->backlightCharTypes, 0); + textNbacklightCharTypes, window->backlightCharTypes, NULL); for (i=0; inPanes; i++) XtVaSetValues(window->textPanes[i], - textNbacklightCharTypes, window->backlightCharTypes, 0); + textNbacklightCharTypes, window->backlightCharTypes, NULL); if (is_applied != do_apply) SetToggleButtonState(window, window->backlightCharsItem, do_apply, False); }