diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-03-13 16:51:13 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-03-13 16:51:13 +0000 |
commit | 667f102ab25eb0303a53355d7d89177319a4e30e (patch) | |
tree | fe54ed6fb4a36aa31ac9f115756a8a5330c273d3 /lwlib/lwlib-Xm.c | |
parent | f25d58a47c5b869b9325e9b411151e128537b14e (diff) | |
download | emacs-667f102ab25eb0303a53355d7d89177319a4e30e.tar.gz |
(make_menu_in_widget): Remove code forcing LessTif to
recompute centered text; it works fine without with current LessTif.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r-- | lwlib/lwlib-Xm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 340c8fda784..9c8fbe50949 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c @@ -493,7 +493,8 @@ make_menu_in_widget (instance, widget, val, keep_first_children) 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 @@ make_menu_in_widget (instance, widget, val, keep_first_children) 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 @@ xm_pop_down_callback (widget, closure, call_data) 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) |