aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Reilly1994-11-07 07:31:19 +0000
committerPaul Reilly1994-11-07 07:31:19 +0000
commit17eab85c8d8787455e32e8cbf8132d8511c4b20e (patch)
tree1fc72e43c964b1cbfdf94e3eb5ad155685614454
parente1e9396710eebff8ddfa1222a2b8a9b978e6b7a5 (diff)
downloademacs-17eab85c8d8787455e32e8cbf8132d8511c4b20e.tar.gz
emacs-17eab85c8d8787455e32e8cbf8132d8511c4b20e.zip
(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'.
-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,
436 { 436 {
437 if (contents) 437 if (contents)
438 { 438 {
439 menu = XmCreatePulldownMenu (widget, "pulldown", NULL, 0); 439 menu = XmCreatePulldownMenu (XtParent (widget), "pulldown", NULL, 0);
440 make_menu_in_widget (instance, menu, contents); 440 make_menu_in_widget (instance, menu, contents);
441 ac = 0; 441 ac = 0;
442 XtSetArg (al [ac], XmNsubMenuId, menu); ac++; 442 XtSetArg (al [ac], XmNsubMenuId, menu); ac++;