Accessibility sees GenericMenuItems as check menu items

Bug #651713 reported by Ted Gould
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DBus Menu
Confirmed
Medium
Ted Gould

Bug Description

Currently the accessibility infrastructure sees GenericMenuItems as CheckItems because that's where we derive from. We need to provide more specific accessibility information to ATK based on the settings of the item.

Ted Gould (ted)
Changed in dbusmenu:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Gerd Kohlberger (lowfi) wrote :

You can fix this by adding

AtkObject *accessible;
accessible = gtk_widget_get_accessible (widget);
atk_object_set_role (accessible, ATK_ROLE_MENU_ITEM);

to the instance init function of your derived widget.

Cheers.

Revision history for this message
Ted Gould (ted) wrote : Re: [Bug 651713] Re: Accessibility sees GenericMenuItems as check menu items

On Wed, 2010-10-27 at 14:55 +0000, Gerd Kohlberger wrote:
> AtkObject *accessible;
> accessible = gtk_widget_get_accessible (widget);
> atk_object_set_role (accessible, ATK_ROLE_MENU_ITEM);
>
> to the instance init function of your derived widget.

Yeah, we need to set it up to detect whether it's a check as well so
that we can give the full information. Thank you for the code snippet
though, that helps!

Ted Gould (ted)
Changed in dbusmenu:
assignee: nobody → Ted Gould (ted)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.