[gtk/stackpage: 3/3] Add docs for GtkStackPage



commit 93589310d3b8ebc109cb3d32f690edbe99737f6c
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 6 13:07:19 2019 -0500

    Add docs for GtkStackPage

 docs/reference/gtk/gtk4-sections.txt |  3 +++
 docs/reference/gtk/gtk4.types.in     |  1 +
 gtk/gtkstack.c                       | 17 +++++++++++++++++
 3 files changed, 21 insertions(+)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 0e72ba604c..cfc4be3e1c 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -6242,10 +6242,13 @@ gtk_header_bar_get_type
 <FILE>gtkstack</FILE>
 <TITLE>GtkStack</TITLE>
 GtkStack
+GtkStackPage
 gtk_stack_new
 gtk_stack_add_named
 gtk_stack_add_titled
 gtk_stack_get_child_by_name
+gtk_stack_get_page
+gtk_stack_page_get_child
 gtk_stack_set_visible_child
 gtk_stack_get_visible_child
 gtk_stack_set_visible_child_name
diff --git a/docs/reference/gtk/gtk4.types.in b/docs/reference/gtk/gtk4.types.in
index 26c78079cf..6d7d94077c 100644
--- a/docs/reference/gtk/gtk4.types.in
+++ b/docs/reference/gtk/gtk4.types.in
@@ -155,6 +155,7 @@ gtk_snapshot_get_type
 gtk_spin_button_get_type
 gtk_spinner_get_type
 gtk_stack_get_type
+gtk_stack_page_get_type
 gtk_stack_sidebar_get_type
 gtk_stack_switcher_get_type
 gtk_statusbar_get_type
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 35643c4424..d53b77ac86 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1235,6 +1235,15 @@ gtk_stack_get_child_meta (GtkContainer  *container,
   return G_OBJECT (find_child_info_for_widget (GTK_STACK (container), child));
 }
 
+/**
+ * gtk_stack_get_page:
+ * @stack: a #GtkStack
+ * @child: a child of @stack
+ *
+ * Returns the #GtkStackPage object for @child.
+ * 
+ * Returns: the #GtkStackPage for @child
+ */
 GtkStackPage *
 gtk_stack_get_page (GtkStack  *stack,
                     GtkWidget *child)
@@ -1274,6 +1283,14 @@ gtk_stack_get_child_by_name (GtkStack    *stack,
   return NULL;
 }
 
+/**
+ * gtk_stack_page_get_child:
+ * @page: a #GtkStackPage
+ *
+ * Returns the stack child to which @page belongs.
+ *
+ * Returns: the child to which @page belongs
+ */
 GtkWidget *
 gtk_stack_page_get_child (GtkStackPage *page)
 {


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