forked from AuroraMiddleware/gtk
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:
parent
30e2e89124
commit
12981692a6
@ -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.
|
||||
|
@ -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 >
|
||||
|
@ -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 <child> element.
|
||||
A normal content child can be specified without specifying
|
||||
a <child> type attribute.
|
||||
</para>
|
||||
<example>
|
||||
<title>A UI definition fragment with GtkExpander</title>
|
||||
|
@ -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 <child> element.
|
||||
A normal content child can be specified without specifying
|
||||
a <child> type attribute.
|
||||
</para>
|
||||
<example>
|
||||
<title>A UI definition fragment with GtkFrame</title>
|
||||
|
@ -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 <child> element. Note that the content
|
||||
"type" attribute of a <child> 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 <child>
|
||||
type attribute.
|
||||
</para>
|
||||
<example>
|
||||
<title>A UI definition fragment with GtkNotebook</title>
|
||||
|
@ -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 <columns> element that may
|
||||
contain multiple <column> 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
|
||||
|
Loading…
Reference in New Issue
Block a user