summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-Xm.c
diff options
context:
space:
mode:
authorPaul Reilly <pmr@pajato.com>1994-11-07 07:31:19 +0000
committerPaul Reilly <pmr@pajato.com>1994-11-07 07:31:19 +0000
commit96e5b88f3635e29362696138416a84bf5087efc3 (patch)
tree78b90ab0c41fb27f45c9aea5f0e2ffa39e7a31d1 /lwlib/lwlib-Xm.c
parent5b116f9e30e1a84065947f56602521bed5699df8 (diff)
downloademacs-96e5b88f3635e29362696138416a84bf5087efc3.tar.gz
(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'.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r--lwlib/lwlib-Xm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 7444d3634dc..099f5837627 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -436,7 +436,7 @@ update_one_menu_entry (widget_instance* instance, Widget widget,
{
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++;