Hi,I'm trying to add accessibility support fora custom widget and chaining up the classes to GtkWidgetAccessibleClass. Unfortunately I can't find a header file with this type defined. I've read that this is the base class which all custom widgets are meant to have public access to (it's subclasses, e.g. GtkContainerAccessible being private). Looking in the source code for gtk>3.2 I find its in gtk/a11y/gtkwidgetaccessible.h but of all the headers on my machine I can find nothing of the sort only gtkaccessible.h which doesn't cover this type. Shouldn't gtk/gtk.h naturally wrap in all these accessibility headers anyway? I have all the usual -dev headers installed. Googling it doesn't seem to help as no-one seems to bother much with accessibility.Am on Ubuntu 12.04Thanks,Paul

Ok turned out that it is GtkAccessible not GtkWidgetAccessible that is made public which meant I had to pull in all the code from gtkwidgetaccesible.c and put it in my custom widget. They have deliberately made all the Gtk*Accessible ojects inaccessible which seems a bit ridiculous. As a side effect I wasn't able to access the _focus_widget that gtkwidgetaccessible gets from gail.c as an extern, so maybe will have to file a bug report. So much for classes being for code reuse. I guess at least my code runs leaner and faster.

Who is online

Users browsing this forum: Google [Bot] and 6 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum