pkgsrc/editors/emacs20/patches/patch-bd
2008-04-05 21:29:14 +00:00

100 lines
3.2 KiB
Text

$NetBSD: patch-bd,v 1.1 2008/04/05 21:29:14 kristerw Exp $
--- lwlib/lwlib-Xm.c.orig 1997-12-21 00:02:56.000000000 +0100
+++ lwlib/lwlib-Xm.c 2008-04-04 21:36:10.000000000 +0200
@@ -267,7 +267,7 @@
Widget widget;
widget_value* val;
{
- XtVaSetValues (widget, XmNalignment, XmALIGNMENT_CENTER, 0);
+ XtVaSetValues (widget, XmNalignment, XmALIGNMENT_CENTER, NULL);
XtRemoveAllCallbacks (widget, XmNactivateCallback);
XtAddCallback (widget, XmNactivateCallback, xm_generic_callback, instance);
}
@@ -295,7 +295,7 @@
XtAddCallback (widget, XmNvalueChangedCallback,
xm_internal_update_other_instances, instance);
XtVaSetValues (widget, XmNset, val->selected,
- XmNalignment, XmALIGNMENT_BEGINNING, 0);
+ XmNalignment, XmALIGNMENT_BEGINNING, NULL);
}
static void
@@ -323,11 +323,11 @@
toggle = XtNameToWidget (widget, cur->value);
if (toggle)
{
- XtVaSetValues (toggle, XmNsensitive, cur->enabled, 0);
+ XtVaSetValues (toggle, XmNsensitive, cur->enabled, NULL);
if (!val->value && cur->selected)
- XtVaSetValues (toggle, XmNset, cur->selected, 0);
+ XtVaSetValues (toggle, XmNset, cur->selected, NULL);
if (val->value && strcmp (val->value, cur->value))
- XtVaSetValues (toggle, XmNset, False, 0);
+ XtVaSetValues (toggle, XmNset, False, NULL);
}
}
@@ -336,7 +336,7 @@
{
toggle = XtNameToWidget (widget, val->value);
if (toggle)
- XtVaSetValues (toggle, XmNset, True, 0);
+ XtVaSetValues (toggle, XmNset, True, NULL);
}
}
@@ -491,7 +491,7 @@
XtVaSetValues (widget,
XmNsensitive, val->enabled,
XmNuserData, val->call_data,
- 0);
+ NULL);
/* update the menu button as a label. */
if (val->this_one_change >= VISIBLE_CHANGE)
@@ -690,7 +690,7 @@
XtVaSetValues (widget,
XmNsensitive, val->enabled,
XmNuserData, val->call_data,
- 0);
+ NULL);
/* Common to all label like widgets */
if (XtIsSubclass (widget, xmLabelWidgetClass))
@@ -1194,7 +1194,7 @@
if (y < 0)
y = 0;
- XtVaSetValues (widget, XtNx, x, XtNy, y, 0);
+ XtVaSetValues (widget, XtNx, x, XtNy, y, NULL);
}
static Widget
@@ -1225,7 +1225,7 @@
/* shrink the separator label back to their original size */
separator = XtNameToWidget (widget, "*separator_button");
if (separator)
- XtVaSetValues (separator, XtNwidth, 5, XtNheight, 5, 0);
+ XtVaSetValues (separator, XtNwidth, 5, XtNheight, 5, NULL);
/* Center the dialog in its parent */
recenter_widget (widget);
@@ -1561,7 +1561,7 @@
else if (event->xbutton.state & Button3Mask) trans = "<Btn3Down>";
else if (event->xbutton.state & Button2Mask) trans = "<Btn2Down>";
else if (event->xbutton.state & Button1Mask) trans = "<Btn1Down>";
- if (trans) XtVaSetValues (widget, XmNmenuPost, trans, 0);
+ if (trans) XtVaSetValues (widget, XmNmenuPost, trans, NULL);
XmMenuPosition (widget, (XButtonPressedEvent *) event);
}
XtManageChild (widget);
@@ -1574,7 +1574,7 @@
short width;
short height;
XtVaGetValues (w, XmNwidth, &width, XmNheight, &height, 0);
- XtVaSetValues (w, XmNminWidth, width, XmNminHeight, height, 0);
+ XtVaSetValues (w, XmNminWidth, width, XmNminHeight, height, NULL);
}
void