On Fri, Jan 14, 2011 at 12:22:20PM CST, Piñeiro wrote:
> From: Luke Yelavich <[email protected]>
> 
> > 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 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. 
:)

Luke
_______________________________________________
gnome-accessibility-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel

Reply via email to