Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!joplin.cs.rpi.edu!mcintyrd From: mcintyrd@cs.rpi.edu (David McIntyre) Newsgroups: comp.windows.x Subject: Re: Help with MenuPopup and MenuPopdown Keywords: Athena Widgets Message-ID: <5290@rpi.edu> Date: 6 Jun 89 03:03:44 GMT References: <11360@megaron.arizona.edu> Sender: usenet@rpi.edu Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 37 In article <11360@megaron.arizona.edu> sandra@arizona.edu (Sandy Miller) writes: >I am trying to use the translation actions MenuPopup and MenuPopdown in >an application I am designing. According to the X Toolkit Intrinsics - C >Language Interface manual, "MenuPopup is known to the translation manager" >and "The Intrinsics register an action table for MenuPopup and MenuPopdown >as part of X Toolkit initialization." > >However, when I use these names on the right-hand side of a translation >table, I get the following message when the window is mapped: >"X Toolkit Warning: Actions not found: MenuPopup, MenuPopdown: This is a known bug (at least to me). Here is the bug report I sent in to the exterminators: SYNOPSIS: When using the new toolkit stuff (application contexts), the MenuPopup and MenuPopdown actions are not added. DESCRIPTION: The problem appears to be that _XtPopupInitialize() calls XtAddActions() instead of XtAppAddActions(). This means that an application context does not get these two actions, and trying to call them results in an unknown action error. REPEAT BY: What I did to get the error: I changed my application from using the R2 and before toolkit initialization to the new method of toolkit initialization and starting using application contexts. SAMPLE FIX: I fixed it just by doing a XtAppAddActions(tmActions) on new application contexts, but that is just a quick fix. Dave "mr question" McIntyre | "....say you're thinking about a plate mcintyre@turing.cs.rpi.edu | of shrimp.....and someone says to office : 518-276-8633 | you `plate,' or `shrimp'......" home : 518-271-6664 |