I recently encountered what I thought was flaky
behaviour with gtk menus, but in the end it turned out to be a feature. What I found was that I was bringint the original menu up with the right mouse button and then selecting a sub-menu entry with the left button. Now it appears that whatever button is passed into the call to gtk_menu_popup() has to be the same one that is used to select an entry from a submenu. Any other button just dismisses the menu. This behaviour can be quite useful once you know it works that way (although for some reason you can use any button to select items from the top-level menu). Anyway, I changed my code to pass in 0 as the button and now I can use any mouse button to select from subitems. I'm guessing you are running into the same issue. John Miroslav Rajcic wrote:
|