Corrections and additions

svn path=/trunk/; revision=18308
This commit is contained in:
Matthias Clasen 2007-06-30 07:39:32 +00:00
parent 8c3832cf03
commit a3b1739796
2 changed files with 34 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2007-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkbuilder.sgml: Some corrections and additions
* gtk/tmpl/gtkdialog.sgml: Explain details of GtkDialog
as a buildable.

View File

@ -45,6 +45,7 @@ which are more limited in scope.
<!ATTLIST interface domain #IMPLIED >
<!ATTLIST object class #REQUIRED
type-func #IMPLIED
id #IMPLIED
constructor #IMPLIED >
<!ATTLIST property name #REQUIRED
@ -54,14 +55,43 @@ which are more limited in scope.
after #IMPLIED
object #IMPLIED >
<!ATTLIST child type #IMPLIED
internal-child #IMPLIED
type-func #IMPLIED >
internal-child #IMPLIED >
]]></programlisting>
</para>
<example>
<title>A GtkBuilder UI Definition</title>
<programlisting><![CDATA[
<interface>
<object class="GtkDialog" id="dialog1">
<child internal-child="vbox">
<object class="GtkVBox">
<property name="border-width">10</property>
<child internal-child="action_area">
<object class="GtkHButtonBox">
<property name="border-width">20</property>
<child id="ok-button">
<object class="GtkButton"/>
<property name="label">OK</property>
<property name="use-stock">TRUE</property>
<signal name="clicked" handler="ok_button_clicked"/>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
]]></programlisting>
</example>
<para>
Beyond this general structure, several object classes define
their own XML DTD fragments for filling in the ANY placeholders.
See
</para>
<simplelist>
<member><link linkend="GtkDialog-BUILDER-UI">GtkDialog as GtkBuildable</link></member>
</simplelist>
</refsect2>
<!-- ##### SECTION See_Also ##### -->