changeset 36782:2f7bd108e82f

(make_menu_in_widget): Remove code forcing LessTif to recompute centered text; it works fine without with current LessTif.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 13 Mar 2001 16:51:13 +0000
parents 249d3e1ba617
children 2846df588007
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Tue Mar 13 16:30:15 2001 +0000
+++ b/lwlib/lwlib-Xm.c	Tue Mar 13 16:51:13 2001 +0000
@@ -493,7 +493,8 @@
   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.  */
@@ -610,12 +611,6 @@
   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);
 
@@ -1906,7 +1901,6 @@
      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)