[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: widget accessibility roles: being able to override it
From:       Matthias Clasen <matthias.clasen () gmail ! com>
Date:       2018-03-19 20:37:09
Message-ID: CAFwd_vB6MrV0uBrZO+gKg1o0hR4rGB0jDZbSwvcnwvCGQXS=+Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.  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.

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar \
19, 2018 at 10:19 AM, Samuel Thibault <span dir="ltr">&lt;<a \
href="mailto:sthibault@hypra.fr" target="_blank">sthibault@hypra.fr</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">Hello,<br> <span class=""><br>
Samuel Thibault, on lun. 05 mars 2018 16:17:24 +0100, wrote:<br>
&gt; Some dialog boxes use labels for static information, e.g. printer<br>
&gt; status, replace result, etc.   For the screen reader to properly<br>
&gt; understand that, it should have role ATK_ROLE_STATIC.   I have not found<br>
&gt; any way in glade&#39;s .ui format to specify this, actually ROLE_STATIC does<br>
&gt; not appear in gtk+3.0 source code, so I guess it&#39;s just not there.<br>
&gt;<br>
&gt; I&#39;m thinking we could have something like<br>
&gt;<br>
&gt; &lt;accessibility&gt;<br>
&gt;     &lt;role type=&quot;static&quot;/&gt;<br>
&gt; &lt;/accessibility&gt;<br>
&gt;<br>
&gt; to be able to specify e.g. labels&#39; role?<br>
<br>
</span>FI, I have posted a patch implementing this in gtk on<br>
<br>
<a href="https://gitlab.gnome.org/GNOME/gtk/issues/109" rel="noreferrer" \
target="_blank">https://gitlab.gnome.org/<wbr>GNOME/gtk/issues/109</a><br> <br>
Along the way, I found that there is<br>
<br>
      &lt;child internal-child=&quot;accessible&quot;&gt;<br>
                  &lt;object class=&quot;AtkObject&quot;&gt;<br>
                              &lt;property \
name=&quot;AtkObject::accessible-<wbr>role&quot;&gt;ATK_ROLE_STATIC&lt;/<wbr>property&gt;<br>
  &lt;/object&gt;<br>
      &lt;/child&gt;<br>
<br>
which is supposed to do the same, but that doesn&#39;t work:<br>
&quot;accessible-role&quot; is supposed to be an int, not a string, and thus 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>  \
</div></div></div></div>



_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic