changeset 11435:efaaecd960ae

(update_one_menu_entry, make_menu_in_widget): Specify more useful names in XmCreatePulldownMenu calls.
author Richard M. Stallman <rms@gnu.org>
date Fri, 14 Apr 1995 03:51:10 +0000
parents 5f5dda37c82c
children 9829d3c035f2
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Fri Apr 14 02:10:52 1995 +0000
+++ b/lwlib/lwlib-Xm.c	Fri Apr 14 03:51:10 1995 +0000
@@ -401,7 +401,7 @@
 	}
       else
 	{
-	  menu = XmCreatePulldownMenu (widget, "pulldown", NULL, 0);
+	  menu = XmCreatePulldownMenu (widget, cur->name, NULL, 0);
 	  make_menu_in_widget (instance, menu, cur->contents);
 	  XtSetArg (al [ac], XmNsubMenuId, menu); ac++;
 	  button = XmCreateCascadeButton (widget, cur->name, al, ac);
@@ -467,7 +467,7 @@
     {
       if (contents)
 	{
-	  menu = XmCreatePulldownMenu (XtParent (widget), "pulldown", NULL, 0);
+	  menu = XmCreatePulldownMenu (XtParent (widget), XtName (widget), NULL, 0);
 	  make_menu_in_widget (instance, menu, contents);
 	  ac = 0;
 	  XtSetArg (al [ac], XmNsubMenuId, menu); ac++;