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 743403 - Add new roles for math content
Add new roles for math content
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: at-spi2-core
unspecified
Other Linux
: Normal normal
: ---
Assigned To: At-spi maintainer(s)
At-spi maintainer(s)
Depends on:
Blocks: 743405 743413
 
 
Reported: 2015-01-23 15:05 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2015-01-26 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.70 KB, patch)
2015-01-23 15:05 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2015-01-23 15:05:13 UTC
Created attachment 295277 [details] [review]
Proposed patch

New roles for fractions, roots, subscripts, and superscripts were added to ATK (see bug 742806). We need them in AT-SPI2 now. Patch attached.

Related aside: Seems none of us has been updating ATSPI_ROLE_COUNT. I've done so now. But do we really need the code in atspi_accessible_get_role_name() that uses it?
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2015-01-26 12:59:22 UTC
Review of attachment 295277 [details] [review]:

Looks good. Just an off-topic comment.

::: atspi/atspi-constants.h
@@ +1319,3 @@
  * One higher than the highest valid value of #AtspiRole.
  */
+#define ATSPI_ROLE_COUNT (121+1)

This has been outdated for a while (so the reason this patch sets it to 121, coming from 90). Not sure why it is needed if we have already ATSPI-ROLE_LAST_DEFINED. 

This is just an off-topic comment saying that this constant should be revisited (to not forget it). But shouldn't hold this patch.
Comment 2 Joanmarie Diggs (IRC: joanie) 2015-01-26 13:25:22 UTC
(In reply to comment #1)
> Review of attachment 295277 [details] [review]:
> 
> Looks good. Just an off-topic comment.
> 
> ::: atspi/atspi-constants.h
> @@ +1319,3 @@
>   * One higher than the highest valid value of #AtspiRole.
>   */
> +#define ATSPI_ROLE_COUNT (121+1)
> 
> This has been outdated for a while (so the reason this patch sets it to 121,
> coming from 90). Not sure why it is needed if we have already
> ATSPI-ROLE_LAST_DEFINED. 
> 
> This is just an off-topic comment saying that this constant should be revisited
> (to not forget it). But shouldn't hold this patch.

Bug 743535 opened so we don't forget it.
Comment 3 Joanmarie Diggs (IRC: joanie) 2015-01-26 13:32:56 UTC
Comment on attachment 295277 [details] [review]
Proposed patch

https://git.gnome.org/browse/at-spi2-core/commit/?id=12550e53