Re: widget accessibility roles: being able to override it
Matthias Clasen <[email protected]> Mon, 19 Mar 2018 16:37:09 -0400
| Newsgroups | gmane.comp.gnome.accessibility.devel,gmane.comp.gnome.gtk+.devel.general |
|---|---|
| Message-ID | <CAFwd_vB6MrV0uBrZO+gKg1o0hR4rGB0jDZbSwvcnwvCGQXS=+Q@mail.gmail.com> |
--===============2248962961340342934== Content-Type: multipart/alternative; boundary="001a114192580de2940567c9eced" --001a114192580de2940567c9eced Content-Type: text/plain; charset="UTF-8" On Mon, Mar 19, 2018 at 10:19 AM, Samuel Thibault <[email protected]> wrote: > Hello, > > Samuel Thibault, on lun. 05 mars 2018 16:17:24 +0100, wrote: > > Some dialog boxes use labels for static information, e.g. printer > > status, replace result, etc. For the screen reader to properly > > understand that, it should have role ATK_ROLE_STATIC. I have not found > > any way in glade's .ui format to specify this, actually ROLE_STATIC does > > not appear in gtk+3.0 source code, so I guess it's just not there. > > > > I'm thinking we could have something like > > > > <accessibility> > > <role type="static"/> > > </accessibility> > > > > to be able to specify e.g. labels' role? > > FI, I have posted a patch implementing this in gtk on > > https://gitlab.gnome.org/GNOME/gtk/issues/109 > > Along the way, I found that there is > > <child internal-child="accessible"> > <object class="AtkObject"> > <property name="AtkObject::accessible- > role">ATK_ROLE_STATIC</property> > </object> > </child> > > which is supposed to do the same, but that doesn't work: > "accessible-role" is supposed to be an int, not a string, and thus one > would have to put 117 there instead of ATK_ROLE_STATIC, which is really > going to work :) > > This is a bug in atk, I would say. The role property should really be defined as enum, not as int. If that is fixed, then your ui file snipplet will start to work. --001a114192580de2940567c9eced Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo= te">On Mon, Mar 19, 2018 at 10:19 AM, Samuel Thibault <span dir=3D"ltr"><= ;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= </a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin= :0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br> <span class=3D""><br> Samuel Thibault, on lun. 05 mars 2018 16:17:24 +0100, wrote:<br> > Some dialog boxes use labels for static information, e.g. printer<br> > status, replace result, etc.=C2=A0 For the screen reader to properly<b= r> > understand that, it should have role ATK_ROLE_STATIC.=C2=A0 I have not= found<br> > any way in glade's .ui format to specify this, actually ROLE_STATI= C does<br> > not appear in gtk+3.0 source code, so I guess it's just not there.= <br> ><br> > I'm thinking we could have something like<br> ><br> > <accessibility><br> >=C2=A0 =C2=A0<role type=3D"static"/><br> > </accessibility><br> ><br> > to be able to specify e.g. labels' role?<br> <br> </span>FI, I have posted a patch implementing this in gtk on<br> <br> <a href=3D"https://gitlab.gnome.org/GNOME/gtk/issues/109" rel=3D"noreferrer= " target=3D"_blank">https://gitlab.gnome.org/<wbr>GNOME/gtk/issues/109</a><= br> <br> Along the way, I found that there is<br> <br> =C2=A0 =C2=A0 <child internal-child=3D"accessible"><br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <object class=3D"AtkObjec= t"><br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <p= roperty name=3D"AtkObject::accessible-<wbr>role">ATK_ROLE_STAT= IC</<wbr>property><br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </object><br> =C2=A0 =C2=A0 </child><br> <br> which is supposed to do the same, but that doesn't work:<br> "accessible-role" is supposed to be an int, not a string, and thu= s one<br> would have to put 117 there instead of ATK_ROLE_STATIC, which is really<br> going to work :)<br> <br></blockquote><div><br></div><div>This is a bug in atk, I would say. The= role property should really be defined as enum, not as int.<br></div><div>= If that is fixed, then your ui file snipplet will start to work. <br></div>= <div><br>=C2=A0</div></div></div></div> --001a114192580de2940567c9eced-- --===============2248962961340342934== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-accessibility-devel mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel --===============2248962961340342934==--