]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_one_menu_entry): Use the parent of the cascade button as the
authorPaul Reilly <pmr@pajato.com>
Mon, 7 Nov 1994 07:31:19 +0000 (07:31 +0000)
committerPaul Reilly <pmr@pajato.com>
Mon, 7 Nov 1994 07:31:19 +0000 (07:31 +0000)
parent of the pulldown, rather than the cascade button itself.  This
works around a Motif SIGSEGV in the function `InSharedMenuHierarchy'.

lwlib/lwlib-Xm.c

index 7444d3634dcae85fa834dace512cb06c1334b226..099f583762793b65ed0b34c60c740b8886f1ac61 100644 (file)
@@ -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++;