Re: [g-a-devel] Question about menus, icons, and labels.
- From: Li Yuan <liyuan gnome org>
- To: Luke Yelavich <themuso ubuntu com>
- Cc: gnome-accessibility-devel <gnome-accessibility-devel gnome org>
- Subject: Re: [g-a-devel] Question about menus, icons, and labels.
- Date: Tue, 18 Jan 2011 11:36:08 +0800
On Sat, Jan 15, 2011 at 5:28 AM, Luke Yelavich
<themuso ubuntu com> wrote:
On Fri, Jan 14, 2011 at 12:22:20PM CST, Piñeiro wrote:
> From: Luke Yelavich <
themuso ubuntu com>
>
> > All is fine with labeling the indicators that are only icons, i.e I am able to call gtk_widget_get_accessible to get the atk object associated with that menu, and set a name for it. However, this doesn't appear to work for the me indicator. Even when the atk object for that menu has a different name set, Orca seems to read the label.
>
> Well, the specific implementation of the atk object can override the
> method get_name, and return the name of the label always. Anyway, that
> shouldn't be the case. In most of the ->get_name reimplementation, it
> first check if there are already a name, and if not, provides the
> default source (label, widget name, whatever).
>
> Could you identify somehow which is the atk implementor for this object?
Looking at the data structure where the menu item label is taken from, its a GtkLabel, and according to gail's code, it only has a call to get the name, not to set it. Its also worth mentioning that the icon and label for the menu item are packed into a box, using gtk_pack_box_start etc. I'm going to have to think carefully about how to present more information than what the label provides. In this case, its not appropriate to extend/change what the label shows to the user visually?
One way to fix this is to set the accessibility object's name in GUI's
code, I mean, where the label is implemented. GAIL only considers the
general use of Gtk+ objects. If any application wants to provide more
accessibility information, it can set accessibility object's name in
their own code.
> > One way to reproduce this is to open accerciser, navigate to the applications menu on the panel, and using the console, set a different name for the menu, like so:
> >
> > acc._set_name("Menu")
> >
> > You will notice that whilst the name on the left changes, the information about the object's name on the right does not change.
> >
> > So my question. is it possible to adjust the atk object to convey different textual information to the user via orca compared to what is shown visually in a menu label?
>
> IMHO, this should be done on the ATK level. One of the purposes of
> atk_object_set_name is allow the application to set a name for an
> object if required.
Yes I am aware of this. One thing I tend to forget however, is that some atk implementations for gtk widgets only allow one to get the name, and not set it. :)
Like I said, set accessibility name in GUI code would be an option.
Li
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]