[gtk/align-docs-fixes] gtk: Tweak GTK_ALIGN_BASELINE docs



commit 1963ff2951c5c9829b65117bbdbd2a9df569b676
Author: Matthew Leeds <matthew leeds endlessm com>
Date:   Thu Mar 12 12:36:09 2020 -0700

    gtk: Tweak GTK_ALIGN_BASELINE docs

 gtk/gtkenums.h  | 7 ++++---
 gtk/gtkwidget.c | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index d4c3b4de2b..8cb42cff20 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -51,7 +51,8 @@ G_BEGIN_DECLS
  *     or top
  * @GTK_ALIGN_CENTER: center natural width of widget inside the
  *     allocation
- * @GTK_ALIGN_BASELINE: align the widget according to the baseline
+ * @GTK_ALIGN_BASELINE: align the widget according to the baseline. See
+ *     #GtkWidget
  *
  * Controls how a widget deals with extra space in a single (x or y)
  * dimension.
@@ -66,8 +67,8 @@ G_BEGIN_DECLS
  * Note that in horizontal context @GTK_ALIGN_START and @GTK_ALIGN_END
  * are interpreted relative to text direction.
  *
- * GTK_ALIGN_BASELINE support for it is optional for containers and widgets, and
- * it is only supported for vertical alignment.  When its not supported by
+ * @GTK_ALIGN_BASELINE support is optional for containers and widgets, and
+ * it is only supported for vertical alignment.  When it's not supported by
  * a child or a container it is treated as @GTK_ALIGN_FILL.
  */
 typedef enum
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index fe3277fd3e..6810fbe44f 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -243,7 +243,7 @@
  * or a baseline assigned to it by the grandparent.
  *
  * Baseline alignment support for a widget is also done by the #GtkWidgetClass.measure()
- * virtual function. It allows you to report a both a minimum and natural 
+ * virtual function. It allows you to report both a minimum and natural size.
  *
  * If a widget ends up baseline aligned it will be allocated all the space in the parent
  * as if it was %GTK_ALIGN_FILL, but the selected baseline can be found via 
gtk_widget_get_allocated_baseline().


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