Small GNOME foot in banner [Making Applications Accessible]
back next

Custom Widget Basics

  • You don't have to reinvent the wheel:
    • your AtkObject subclass can inherit from the "default" GAIL ATK implementation for most custom widgets
    • you may override selected ATK methods
    • you must decide which ATK interfaces your UI object should support
    • ATK uses standard gobject/gtype model
    • some useful code available in gailutil, for instance AtkText helpers for pango classes
  • appropriate ATK events should be fired
    • focus, property changes, etc.
  • Associate your widget's AtkObject subtype by
    • overriding GtkWidgetClass->get_accessible, or:
    • associating an appropriate AtkObjectFactory with the AtkRegistry