After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542458 - MenuBar class doesn't support radio menu items or menu items with children
MenuBar class doesn't support radio menu items or menu items with children
Status: RESOLVED FIXED
Product: strongwind
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: strongwind-maint@gnome.bugs
strongwind-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2008-07-10 23:04 UTC by Brian G. Merrell
Modified: 2008-07-11 16:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
handle menu items with children and handle radio menu items (1.31 KB, patch)
2008-07-10 23:06 UTC, Brian G. Merrell
committed Details | Review

Description Brian G. Merrell 2008-07-10 23:04:40 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.
Comment 1 Brian G. Merrell 2008-07-10 23:06:19 UTC
Created attachment 114356 [details] [review]
handle menu items with children and handle radio menu items
Comment 2 Jonathan Tai 2008-07-11 16:42:53 UTC
The patch looks good; I've applied it.  Thanks!