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

Applications can call ATK API

  • Getting an AtkObject from a widget:
    AtkObject *atko = gtk_widget_get_accessible (widget);
    
    
  • Setting name or description:
    atk_object_set_name (atko, "Left Channel Volume");
    atk_object_set_description (atko,
          "Sets master volume for left audio channel.");
    
    
  • Setting action descriptions:
    
    atko = gtk_widget_get_accessible (mute_button);		      
    AtkAction *action = atk_object_get_action (atko, 0);
    atk_action_set_description (action, "Mute/unmute system audio.");
    		  
    
  • Assigning relationships