GNOME Bugzilla – Bug 363450
ATK_STATE_DEFAULT needs to be implemented.
Last modified: 2008-03-20 09:14:24 UTC
See also Orca bug #356068, which is blocked by this bug. Latest ATK specification has an AtkState value of ATK_STATE_DEFAULT "Indicates that the object is the "default" active component, i.e. the object which is activated by an end-user press of the "Enter" or "Return" key. Typically a "close" or "submit" button." See: http://developer.gnome.org/doc/API/2.0/atk/atk-AtkState.html This needs to be implemented, so that screen readers like Orca can use it.
moving to gail, since the state exists in ATK (and is, I believe, exposed by recent Firefox); issue is that gail (probably gailwidget.c) needs to detect this property from gtk+ and expose it. (I am pretty sure gtk+ exposes the widget property that means "I am the default action for this dialog").
gtkwidget has a "has-default" property. I think we can use this property to set the ATK_STATE_DEFAULT state.
Maybe just calling GTK_WIDGET_HAS_DEFAULT() will work.
(In reply to comment #3) > Maybe just calling GTK_WIDGET_HAS_DEFAULT() will work. > Is this something that might be possible in the 2.20 timeframe?
Created attachment 92320 [details] [review] patch Will, can you try the patch? If it is OK, I can commit it. I have tried this on gedit's open file dialog and it works.
Oh, you can ignore the change in gail/Makefile.am, it is for another bug.
I can confirm that this patch causes "is default" to be exposed as a state both for the gedit Open dialog and the Evolution New Contact dialog.
Thank you. Patch committed.
I checked it, too. Looks great! Thanks!