This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Howto add dogtail accessibility to GTK+ widgets.


On Tue, 2006-08-01 at 13:25 -0400, Nurdin Premji wrote:

> 
> In java-gnome there is also a class called AtkObject under org.gnu.atk.
> The constructor takes a handle, and it also has setName and
> setDescription methods. While I have not actually tested this I'm sure
> the code will look something like this:
> 
> AtkObject obj = new AtkObject(widget.getHandle());
> obj.setName("My Name");
> obj.setDescription("My Description");


Sorry that was wrong, you don't use the constructor, instead you use the
widgets getAccessible() method.

So the code looks like:

AtkObject obj = widget.getAccessible();
obj.setName("My Name");

I am in the process of putting this all up on the website, should be up
shortly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]