GNOME Bugzilla – Bug 542458
MenuBar class doesn't support radio menu items or menu items with children
Last modified: 2008-07-11 16:42:53 UTC
DESCRIPTION The MenuBar class has open and select methods that abstract menu navigation for users, but these methods search for only certain ATK roles. Currently, the methods fail if the user is working with an application that uses menu items (ROLE_MENU_ITEM) with children and/or an application that uses radio button menu items (ROLE_RADIO_MENU_ITEM). REPRODUCE 1. download gcalctool 5.22.2 2. run the gcalctool-change-modes.py test strongwind/examples. RESULTS The test will fail when it tries to open the "View" menu, because it has changed from ROLE_MENU to ROLE_MENU_ITEM. Later it would fail because the gcalctool's "Basic," "Advanced," etc. options in the View menu have changed from ROLE_CHECK_MENU_ITEM to ROLE_RADIO_MENU_ITEM EXPECTED RESULTS The test should not fail using the MenuBar class to abstract menu navigation COMMENTS Even with this patch, the strongwind example scripts fail because of recent changes to gcalctool. The other problems I saw were, however, part of the test script, not Strongwind itself.
Created attachment 114356 [details] [review] handle menu items with children and handle radio menu items
The patch looks good; I've applied it. Thanks!