[gtk+] Point to the new GtkWidget align and margin properties



commit 6b4992d647aaa1d67f5c61b0a8f0c202e770c918
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 19 01:01:09 2010 -0400

    Point to the new GtkWidget align and margin properties

 docs/reference/gtk/tmpl/gtkmisc.sgml |    5 +++++
 gtk/gtkalignment.c                   |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/tmpl/gtkmisc.sgml b/docs/reference/gtk/tmpl/gtkmisc.sgml
index c3466bb..4348660 100644
--- a/docs/reference/gtk/tmpl/gtkmisc.sgml
+++ b/docs/reference/gtk/tmpl/gtkmisc.sgml
@@ -19,6 +19,11 @@ positioned within its allocated area. Note that if the widget is added to
 a container in such a way that it expands automatically to fill its
 allocated area, the alignment settings will not alter the widgets position.
 </para>
+<para>
+Note that the desired effect can in most cases be achieved by using the
+#GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties
+on the child widget.
+</para>
 
 <!-- ##### SECTION See_Also ##### -->
 <para>
diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c
index c863553..9a85a91 100644
--- a/gtk/gtkalignment.c
+++ b/gtk/gtkalignment.c
@@ -41,6 +41,10 @@
  * area. The values range from 0 (top or left) to 1 (bottom or right).
  * Of course, if the scale settings are both set to 1, the alignment settings
  * have no effect.
+ *
+ * Note that the desired effect can in most cases be achieved by using the
+ * #GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties
+ * on the child widget.
  */
 
 #include "config.h"



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