--===============5859736433623163082== 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 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 > > > > > > > > > > > > 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 > > > > ATK_ROLE_STATIC > > > > 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


On Mon, Mar 19, 2018 at 10:19 AM, Samuel Thibault <= ;sthibault@hypra.fr= > 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.=C2=A0 For the screen reader to properly > understand that, it should have role ATK_ROLE_STATIC.=C2=A0 I have not= found
> any way in glade's .ui format to specify this, actually ROLE_STATI= C 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>
>=C2=A0 =C2=A0<role type=3D"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<= br>
Along the way, I found that there is

=C2=A0 =C2=A0 <child internal-child=3D"accessible">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <object class=3D"AtkObjec= t">
=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-role">ATK_ROLE_STAT= IC</property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </object>
=C2=A0 =C2=A0 </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 thu= s 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.
=

=C2=A0
--001a114192580de2940567c9eced-- --===============5859736433623163082== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list --===============5859736433623163082==--