# HG changeset patch # User Paul Reilly # Date 784193479 0 # Node ID c76bf6b5d4c6ff26e47ab05e2f69d28fec3003ba # Parent 1a60406f3d3eb8640bd549091bd52d37c5d3332a (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'. diff -r 1a60406f3d3e -r c76bf6b5d4c6 lwlib/lwlib-Xm.c --- 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++;