GNOME Bugzilla – Bug 303637
changes to/fromselected from/to unselected should be reported for focused table line
Last modified: 2005-05-18 10:28:33 UTC
When the focused table line changes its state, this change should be reported by gnopernicus. Bug inspired from bug #301924.
Created attachment 46281 [details] [review] proposed patch
Comment on attachment 46281 [details] [review] proposed patch does this only produce output when the item whose selection is changing is also FOCUSSED? I am concerned that this patch will produce side-effects for some UI situations - have you tested it with JavaSwing, with StarOffice tables, and with other kinds of selectable objects? What if an item changes its state to or from SELECTED without the user having been directly responsible, that is if it's not focussed or active?
>+ else if (srle_has_type (event, SRL_EVENT_STATE_SELECTED)) >+ rv = srle_acc_has_role (event, SPI_ROLE_TABLE_CELL); These lines are in if (srle_is_for_focus() || srle_is_for_watch ()). So, the state change is present only for current focussed line.
Comment on attachment 46281 [details] [review] proposed patch I don't think the check for SPI_ROLE_TABLE_CELL in SRLow.c is correct, since cells won't always have this role. Also, I think some state-change notification is needed for selected/unselected in default.xml as well as in verbose.xml.
>Also, I think some state-change notification is needed for selected/unselected >in default.xml as well as in verbose.xml. It is present in both files.
I missed the selected/unselected change in default.xml, thanks. Can you remove the check for SPI_ROLE_TABLE_CELL? I think it's incorrect.
Created attachment 46528 [details] [review] reworked patch
Comment on attachment 46528 [details] [review] reworked patch Patch committed.