Re: [orca-list] Geany, SciTE and other Scintilla based applications




Thanks for the tips Mike.

Looking at Neil's code there are already places where he is using
conditional compilation switches to cope with different versions of gtk,
so it shouldn't be that difficult to work out how to do that bit.

It's a matter of me spending some time looking at the atk documentation
and working out exactly how it all hangs together.

Might be exactly the kind of 'tutorial' for atk programming I need. 
Necessity is the mother of invention etc.

Mike

On 15/07/2014 23:13, Mike Gorse wrote:
Hi Mike,

Looking at the Scintilla source and some of the gtk stuff it looks like
it's a matter of sub-classing the scintilla class, or making the
scintilla class itself a sub-class of some atk object.

Not exactly. Atk objects are typically separate objects from the
widgets backing them. If you're coding for gtk+ 3.8+, then you'd want
to subclass GtkContainerAccessible and associate your new class with
scintilla by adding a call to gtk_widget_class_set_accessible_type
into scintilla_class_init(). To support older versions of gtk, it's a
bit more complicated.

And then doing something positive with the different signals which
scintilla emits to interface to atk.

One of the things your AtkObject may need to do would be to emit
signals. It may be helpful to look at, say, gtkwidgetaccessible.c in
gtk's sources to get an idea of what it does.

There seems to be a lot of talk now about vala but I don't know if
that's at all relevant.  I suspect it will just hide some of the
lower-level gtk stuff from view.

Scintilla doesn't use vala for anything right now, so imo it would be
more trouble than it would be worth to try to use it.

Hth,
-Mike
_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at
http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp


-- 
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

The box said: 'install Windows XP, 7 or better'. So I installed Linux

Interested in accessibility on the Raspberry Pi?
Visit: http://www.raspberryvi.org/

From where you can join our mailing list for visually-impaired Pi hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]