Improve GtkBuilder DTD, remove treemodel section, add more information

2007-07-01  Johan Dahlin  <jdahlin@async.com.br>

        * gtk/tmpl/gtkbuilder.sgml:
        * gtk/tmpl/gtkexpander.sgml:
        * gtk/tmpl/gtkframe.sgml:
        * gtk/tmpl/gtknotebook.sgml:
        * gtk/tmpl/gtktreemodel.sgml: Improve GtkBuilder DTD,
        remove treemodel section, add more information about
        container subclasses child attributes. #452954


svn path=/trunk/; revision=18334
This commit is contained in:
Johan Dahlin 2007-07-02 00:52:27 +00:00 committed by Johan Dahlin
parent 30e2e89124
commit 12981692a6
6 changed files with 20 additions and 24 deletions

View File

@ -1,3 +1,13 @@
2007-07-01 Johan Dahlin <jdahlin@async.com.br>
* gtk/tmpl/gtkbuilder.sgml:
* gtk/tmpl/gtkexpander.sgml:
* gtk/tmpl/gtkframe.sgml:
* gtk/tmpl/gtknotebook.sgml:
* gtk/tmpl/gtktreemodel.sgml: Improve GtkBuilder DTD,
remove treemodel section, add more information about
container subclasses child attributes. #452954
2007-07-01 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/*.sgml: Document GtkBuilder ui definitions.

View File

@ -44,15 +44,16 @@ which are more limited in scope.
<!ELEMENT child (object|ANY*) >
<!ATTLIST interface domain #IMPLIED >
<!ATTLIST object class #REQUIRED
<!ATTLIST object id #REQUIRED
class #IMPLIED
type-func #IMPLIED
id #IMPLIED
constructor #IMPLIED >
<!ATTLIST property name #REQUIRED
translatable #IMPLIED >
<!ATTLIST signal name #REQUIRED
handler #REQUIRED
after #IMPLIED
swapped #IMPLIED
object #IMPLIED >
<!ATTLIST child type #IMPLIED
internal-child #IMPLIED >

View File

@ -63,6 +63,8 @@ expander_callback (GObject *object,
The GtkExpander implementation of the GtkBuildable interface
supports placing a child in the label position by specifying
"label" as the "type" attribute of a &lt;child&gt; element.
A normal content child can be specified without specifying
a &lt;child&gt; type attribute.
</para>
<example>
<title>A UI definition fragment with GtkExpander</title>

View File

@ -19,6 +19,8 @@ label can be controlled with gtk_frame_set_label_align().
The GtkFrame implementation of the GtkBuildable interface
supports placing a child in the label position by specifying
"label" as the "type" attribute of a &lt;child&gt; element.
A normal content child can be specified without specifying
a &lt;child&gt; type attribute.
</para>
<example>
<title>A UI definition fragment with GtkFrame</title>

View File

@ -24,8 +24,10 @@ will be a popup menu allowing the users to switch pages.
<para>
The GtkNoteboopk implementation of the GtkBuildable interface
supports placing children into tabs by specifying "tab" as the
"type" attribbute of a &lt;child&gt; element. Note that the content
"type" attribute of a &lt;child&gt; element. Note that the content
of the tab must be created before the tab can be filled.
A tab child can be specified without specifying a &lt;child&gt;
type attribute.
</para>
<example>
<title>A UI definition fragment with GtkNotebook</title>

View File

@ -188,27 +188,6 @@ enum
</example>
</para>
<refsect2 id="GtkTreeModel-BUILDER-UI">
<title>GtkTreeModel as GtkBuildable</title>
<para>
The GtkTreeStore implementation of the GtkBuildable interface allows
to specify the model columns with a &lt;columns&gt; element that may
contain multiple &lt;column&gt; elements, each specifying one model
column. The "type" attribute specifies the data type for the column.
</para>
<example>
<title>A UI definition fragment with GtkTreeStore</title>
<programlisting><![CDATA[
<object class="GtkTreeStore">
<columns>
<column type="gchararray"/>
<column type="guint"/>
</columns>
</object>
]]></programlisting>
</example>
</refsect2>
<!-- ##### SECTION See_Also ##### -->
<para>
#GtkTreeView, #GtkTreeStore, #GtkListStore, <link linkend="gtk-GtkTreeView-drag-and-drop">GtkTreeDnd</link>, #GtkTreeSortable