[gtk+] Point to GtkGrid from the GtkBox and GtkTable docs



commit c7500031680a9b924d66fe69a537bd990de775c3
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 22 19:59:29 2010 +0200

    Point to GtkGrid from the GtkBox and GtkTable docs

 docs/reference/gtk/tmpl/gtktable.sgml |   13 +++++++++----
 gtk/gtkbox.c                          |    3 +++
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/docs/reference/gtk/tmpl/gtktable.sgml b/docs/reference/gtk/tmpl/gtktable.sgml
index a95a319..22503ea 100644
--- a/docs/reference/gtk/tmpl/gtktable.sgml
+++ b/docs/reference/gtk/tmpl/gtktable.sgml
@@ -32,17 +32,22 @@ either side</emphasis> of the widget it belongs to.
 gtk_table_set_homogeneous(), can be used to set whether all cells in the
 table will resize themselves to the size of the largest widget in the table.
 </para>
+<para>
+Note that #GtkGrid provides the same capabilities as GtkTable for arranging
+widgets in a rectangular grid, and additionally supports height-for-width
+geometry management.
+</para>
 
 <!-- ##### SECTION See_Also ##### -->
 <para>
 <variablelist>
 <varlistentry>
-<term>#GtkVBox</term>
-<listitem><para>For packing widgets vertically only.</para></listitem>
+<term>#GtkBox</term>
+<listitem><para>For packing widgets in a single row.</para></listitem>
 </varlistentry>
 <varlistentry>
-<term>#GtkHBox</term>
-<listitem><para>For packing widgets horizontally only.</para></listitem>
+<term>#GtkGrid</term>
+<listitem><para>For packing widgets in a grid with height-for-width geometry management.</para></listitem>
 </varlistentry>
 </variablelist>
 </para>
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 523b19a..50e827d 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -74,6 +74,9 @@
  * Use gtk_box_set_child_packing() to reset the #GtkBox:expand,
  * #GtkBox:fill and #GtkBox:padding child properties.
  * Use gtk_box_query_child_packing() to query these fields.
+ *
+ * Note that a single-row or single-column #GtkGrid provides exactly the
+ * same functionality as #GtkBox.
  */
 
 #include "config.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]