[gtk+] Move documentation to inline comments: GtkVBox
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Move documentation to inline comments: GtkVBox
- Date: Fri, 5 Mar 2010 04:25:15 +0000 (UTC)
commit 3f579a7a936b9b6cbd08aa2331eae932b1a68491
Author: Steven Harms <sharms ubuntu com>
Date: Thu Mar 4 13:21:16 2010 -0500
Move documentation to inline comments: GtkVBox
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611831
docs/reference/gtk/tmpl/gtkvbox.sgml | 49 ----------------------------------
gtk/gtkvbox.c | 23 ++++++++++++++++
2 files changed, 23 insertions(+), 49 deletions(-)
---
diff --git a/gtk/gtkvbox.c b/gtk/gtkvbox.c
index 4fcd284..d870026 100644
--- a/gtk/gtkvbox.c
+++ b/gtk/gtkvbox.c
@@ -30,6 +30,20 @@
#include "gtkvbox.h"
#include "gtkalias.h"
+/**
+ * SECTION:gtkvbox
+ * @Short_description: A vertical container box
+ * @Title: GtkVBox
+ * @See_also: #GtkHBox
+ *
+ * A #GtkVBox is a container that organizes child widgets into a single column.
+ *
+ * Use the #GtkBox packing interface to determine the arrangement,
+ * spacing, height, and alignment of #GtkVBox children.
+ *
+ * All children are allocated the same width.
+ */
+
G_DEFINE_TYPE (GtkVBox, gtk_vbox, GTK_TYPE_BOX)
static void
@@ -46,6 +60,15 @@ gtk_vbox_init (GtkVBox *vbox)
_gtk_box_set_old_defaults (GTK_BOX (vbox));
}
+/**
+ * gtk_vbox_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 #GtkVBox.
+ *
+ * Returns: a new #GtkVBox.
+ */
GtkWidget *
gtk_vbox_new (gboolean homogeneous,
gint spacing)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]