/* Temporarily set value of XmNmappedWhenManaged
to stop the dialog from popping up right away */
- XtVaGetValues(shell, XmNmappedWhenManaged, &mappedWhenManaged, 0);
- XtVaSetValues(shell, XmNmappedWhenManaged, False, 0);
+ XtVaGetValues(shell, XmNmappedWhenManaged, &mappedWhenManaged, NULL);
+ XtVaSetValues(shell, XmNmappedWhenManaged, False, NULL);
XtManageChild(dialog_child);
XtMapWidget(shell);
/* Restore the value of XmNmappedWhenManaged */
- XtVaSetValues(shell, XmNmappedWhenManaged, mappedWhenManaged, 0);
+ XtVaSetValues(shell, XmNmappedWhenManaged, mappedWhenManaged, NULL);
}
#if defined(FEAT_MENU) || defined(FEAT_SUN_WORKSHOP) \
{
if (XtClass(w) == xmRowColumnWidgetClass)
{
- XtVaGetValues(w, XmNrowColumnType, &rowColType, 0);
+ XtVaGetValues(w, XmNrowColumnType, &rowColType, NULL);
isMenu = (rowColType != (unsigned char)XmWORK_AREA);
}
else
if (!isMenu)
{
XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
- &numChildren, 0);
+ &numChildren, NULL);
for (i = 0; i < numChildren; i++)
do_mnemonic(children[i], keycode);
}
}
else
{
- XtVaGetValues(w, XmNmnemonic, &mnemonic, 0);
+ XtVaGetValues(w, XmNmnemonic, &mnemonic, NULL);
if (mnemonic != '\0')
{
mneString[0] = mnemonic;
if (XtClass(w) == xmLabelWidgetClass
|| XtClass(w) == xmLabelGadgetClass)
{
- XtVaGetValues(w, XmNuserData, &userData, 0);
+ XtVaGetValues(w, XmNuserData, &userData, NULL);
if (userData != NULL && XtIsWidget(userData))
XmProcessTraversal(userData, XmTRAVERSE_CURRENT);
}
{
if (XtClass(w) == xmRowColumnWidgetClass)
{
- XtVaGetValues(w, XmNrowColumnType, &rowColType, 0);
+ XtVaGetValues(w, XmNrowColumnType, &rowColType, NULL);
isMenu = (rowColType != (unsigned char)XmWORK_AREA);
}
else
if (!isMenu)
{
XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
- &numChildren, 0);
+ &numChildren, NULL);
for (i = 0; i < numChildren; i++)
add_mnemonic_grabs(dialog, children[i]);
}
}
else
{
- XtVaGetValues(w, XmNmnemonic, &mnemonic, 0);
+ XtVaGetValues(w, XmNmnemonic, &mnemonic, NULL);
if (mnemonic != '\0')
{
mneString[0] = mnemonic;