old_children = XtCompositeChildren (widget, &old_num_children);
/* Allocate the children array */
- for (num_children = 0, cur = val; cur; num_children++, cur = cur->next);
+ for (num_children = 0, cur = val; cur; num_children++, cur = cur->next)
+ ;
children = (Widget*)XtMalloc (num_children * sizeof (Widget));
/* WIDGET should be a RowColumn. */
if (button)
XtVaSetValues (widget, XmNmenuHelpWidget, button, NULL);
- /* LessTif apparently doesn't recompute centered text when more
- widgets are added. So, do it after all widgets have been
- created. */
- if (title)
- XtVaSetValues (title, XmNalignment, XmALIGNMENT_CENTER, NULL);
-
if (num_children)
XtManageChildren (children, num_children);
XtPointer call_data;
{
widget_instance *instance = (widget_instance *) closure;
- fprintf (stderr, "%p\n", call_data);
if ((!instance->pop_up_p && XtParent (widget) == instance->widget)
|| XtParent (widget) == instance->parent)