changeset 9825:c76bf6b5d4c6

(update_one_menu_entry): Use the parent of the cascade button as the parent of the pulldown, rather than the cascade button itself. This works around a Motif SIGSEGV in the function `InSharedMenuHierarchy'.
author Paul Reilly <pmr@pajato.com>
date Mon, 07 Nov 1994 07:31:19 +0000
parents 1a60406f3d3e
children b6bed4a60f84
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Sat Nov 05 02:13:37 1994 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Nov 07 07:31:19 1994 +0000
@@ -436,7 +436,7 @@
     {
       if (contents)
 	{
-	  menu = XmCreatePulldownMenu (widget, "pulldown", NULL, 0);
+	  menu = XmCreatePulldownMenu (XtParent (widget), "pulldown", NULL, 0);
 	  make_menu_in_widget (instance, menu, contents);
 	  ac = 0;
 	  XtSetArg (al [ac], XmNsubMenuId, menu); ac++;