[gtk] gtk: Small documentation fixes



commit ed52c029a0fcd6ca1d57dcdc3fe6cbbd9cb03292
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 2 02:57:49 2019 +0000

    gtk: Small documentation fixes

 gtk/gtkfixedlayout.c   |  7 +++++++
 gtk/gtkgridlayout.c    |  2 +-
 gtk/gtkpasswordentry.c |  2 +-
 gtk/gtksnapshot.c      | 10 ++++++++++
 4 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfixedlayout.c b/gtk/gtkfixedlayout.c
index cd37590100..5363d8e4e5 100644
--- a/gtk/gtkfixedlayout.c
+++ b/gtk/gtkfixedlayout.c
@@ -334,6 +334,13 @@ gtk_fixed_layout_init (GtkFixedLayout *self)
 {
 }
 
+/**
+ * gtk_fixed_layout_new:
+ *
+ * Creates a new #GtkFixedLayout.
+ *
+ * Returns: the newly created #GtkFixedLayout
+ */
 GtkLayoutManager *
 gtk_fixed_layout_new (void)
 {
diff --git a/gtk/gtkgridlayout.c b/gtk/gtkgridlayout.c
index fe7c9ff4b1..aa7bc69ed1 100644
--- a/gtk/gtkgridlayout.c
+++ b/gtk/gtkgridlayout.c
@@ -1726,7 +1726,7 @@ gtk_grid_layout_init (GtkGridLayout *self)
 }
 
 /**
- * gtk_grid_layou_new:
+ * gtk_grid_layout_new:
  *
  * Creates a new #GtkGridLayout.
  *
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 725ef96a0d..4d7edba2e8 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -446,7 +446,7 @@ gtk_password_entry_new (void)
 /**
  * gtk_password_entry_set_show_peek_icon:
  * @entry: a #GtkPasswordEntry
- * show_peek_icon: whether to show the peek icon
+ * @show_peek_icon: whether to show the peek icon
  *
  * Sets whether the entry should have a clickable icon
  * to show the contents of the entry in clear text.
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index dde973a867..98d86619a3 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -611,6 +611,16 @@ gtk_snapshot_ensure_identity (GtkSnapshot *snapshot)
     gtk_snapshot_autopush_transform (snapshot);
 }
 
+/**
+ * gtk_snapshot_push_repeat:
+ * @snapshot: a #GtkSnapshot
+ * @bounds: the bounds within which to repeat
+ * @child_bounds: the bounds of the child
+ *
+ * Creates a node that repeats the child node.
+ *
+ * The child is recorded until the next call to gtk_snapshot_pop().
+ */
 void
 gtk_snapshot_push_repeat (GtkSnapshot           *snapshot,
                           const graphene_rect_t *bounds,


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