Move documentation to inline comments: GtkHBox

This commit is contained in:
Javier Jardón 2010-04-28 04:29:41 +02:00
parent a6ed128abf
commit 3cc9575323
3 changed files with 26 additions and 49 deletions

View File

@ -1,2 +1,3 @@
gtkhbox.sgml
gtkmessagedialog.sgml
gtktesting.sgml

View File

@ -1,49 +0,0 @@
<!-- ##### SECTION Title ##### -->
GtkHBox
<!-- ##### SECTION Short_Description ##### -->
A horizontal container box
<!-- ##### SECTION Long_Description ##### -->
<para>
GtkHBox is a container that organizes child widgets into a single row.
</para>
<para>
Use the #GtkBox packing interface to determine the arrangement,
spacing, width, and alignment of GtkHBox children.
</para>
<para>
All children are allocated the same height.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
<variablelist>
<varlistentry>
<term>#GtkVBox</term>
<listitem><para>a sister class that organizes widgets into a column.</para></listitem>
</varlistentry>
</variablelist>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GtkHBox ##### -->
<!-- ##### FUNCTION gtk_hbox_new ##### -->
<para>
Creates a new GtkHBox.
</para>
@homogeneous: %TRUE if all children are to be given equal space allotments.
@spacing: the number of pixels to place by default between children.
@Returns: a new GtkHBox.

View File

@ -30,6 +30,22 @@
#include "gtkorientable.h"
#include "gtkalias.h"
/**
* SECTION:gtkhbox
* @Short_description: A horizontal container box
* @Title: GtkHBox
* @See_also: #GtkVBox
*
* #GtkHBox is a container that organizes child widgets into a single row.
*
* Use the #GtkBox packing interface to determine the arrangement,
* spacing, width, and alignment of #GtkHBox children.
*
* All children are allocated the same height.
*/
G_DEFINE_TYPE (GtkHBox, gtk_hbox, GTK_TYPE_BOX)
static void
@ -46,6 +62,15 @@ gtk_hbox_init (GtkHBox *hbox)
_gtk_box_set_old_defaults (GTK_BOX (hbox));
}
/**
* gtk_hbox_new:
* @homogeneous: %TRUE if all children are to be given equal space allotments.
* @spacing: the number of pixels to place by default between children.
*
* Creates a new #GtkHBox.
*
* Returns: a new #GtkHBox.
*/
GtkWidget *
gtk_hbox_new (gboolean homogeneous,
gint spacing)