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 668361 - Expose CHECKED state based on the pseudo_class
Expose CHECKED state based on the pseudo_class
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-01-20 18:14 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2012-02-29 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds ATK_STATE_CHECKED if the widget is using "checked" style (4.44 KB, patch)
2012-01-20 18:18 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
needs-work Details | Review

Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-01-20 18:14:47 UTC
In the same way that in the past (bug 636717) we started to use the pseudo_class "selected" to expose that a object was selected, we could do the same for the case of "checked" objects.
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-01-20 18:18:21 UTC
Created attachment 205715 [details] [review]
Adds ATK_STATE_CHECKED if the widget is using "checked" style

Just one comment: we could be more strict and just adding this state if the role of the object is the proper one (in other words, if the object is "checkable"). For example, we would only add ATK_STATE_CHECKED if the object role is ATK_ROLE_CHECK_MENU_ITEM or ATK_ROLE_CHECK_BUTTON. But I think that it is not required, and that we can assume that if someone wants to use the style "checked" is because makes sense to use that style.
Comment 2 Dan Winship 2012-02-28 18:04:51 UTC
Comment on attachment 205715 [details] [review]
Adds ATK_STATE_CHECKED if the widget is using "checked" style

>+  if (found != self->priv->checked)
>+    {
>+      self->priv->selected = found;

"selected" should be "checked"

otherwise looks right
Comment 3 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-02-29 15:46:51 UTC
(In reply to comment #2)
> (From update of attachment 205715 [details] [review])
> >+  if (found != self->priv->checked)
> >+    {
> >+      self->priv->selected = found;
> 
> "selected" should be "checked"
> 
> otherwise looks right

Fixed. Committed. Closing bug.