Implement accessible support, fixes #454653.
2008-01-25 Johan Dahlin <johan@gnome.org> * gtk/gtkwidget.c: (gtk_widget_buildable_interface_init), (gtk_widget_buildable_get_internal_child), (free_action), (free_relation), (gtk_widget_buildable_parser_finished), (accessibility_start_element), (gtk_widget_buildable_custom_tag_start), (gtk_widget_buildable_custom_finished): Implement accessible support, fixes #454653. * gtk/gtk-builder-convert: Add support for migrating old glade files * tests/buildertest.c: (test_widget), (test_file): Add accessible tests and improve the test_file function to display toplevels and run dialogs. svn path=/trunk/; revision=19403
This commit is contained in:
committed by
Johan Dahlin
parent
7b8050aff2
commit
fddc9b8561
@ -1,3 +1,8 @@
|
||||
2008-01-24 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gtk/tmpl/gtkwidget.sgml:
|
||||
Add documentation for <accessible> buildable tag.
|
||||
|
||||
2008-01-14 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk-docs.sgml:
|
||||
|
||||
@ -37,6 +37,31 @@ modifiers and signal and allows to specify accelerators.
|
||||
</object>
|
||||
]]></programlisting>
|
||||
</example>
|
||||
In addition to accelerators, <structname>GtkWidget</structname> also support a
|
||||
custom <accessible> element, which supports actions and relations.
|
||||
Properties on the accessible implementation of an object can be set by accessing the
|
||||
internal child "accessible" of a <structname>GtkWidget</structname>.
|
||||
<example>
|
||||
<title>A UI definition fragment specifying an accessible</title>
|
||||
<programlisting><![CDATA[
|
||||
<object class="GtkButton" id="label1"/>
|
||||
<property name="label">I am a Label for a Button</property>
|
||||
</object>
|
||||
<object class="GtkButton" id="button1">
|
||||
<accessibility>
|
||||
<action action_name="click" description="Click the button."/>
|
||||
<relation target="label1" type="labelled-by"/>
|
||||
</accessibility>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject" id="a11y-button1">
|
||||
<property name="AtkObject::name">Clickable Button</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
]]></programlisting>
|
||||
</example>
|
||||
|
||||
|
||||
</refsect2>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
|
||||
Reference in New Issue
Block a user