diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-05 21:36:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-05 22:50:30 -0400 |
commit | 3412f0554f951893170dd4a55f4ee531b057191b (patch) | |
tree | e6dc2c130f7980bc780c2e57b5f3dc8c8e2e7568 /gtk/gtkpaned.c | |
parent | 61c83f9ffe9d8a96c8b9bd6f1a495d8018583296 (diff) | |
download | gtk+-3412f0554f951893170dd4a55f4ee531b057191b.tar.gz |
gtk: Documentation fixups
Document missing symbols, and other cleanups.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 94 |
1 files changed, 86 insertions, 8 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 9a0313c5af..b76a09d564 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -109,10 +109,14 @@ * * gtk_widget_set_size_request (hpaned, 200, -1); * - * gtk_paned_pack1 (GTK_PANED (hpaned), frame1, TRUE, FALSE); + * gtk_paned_set_start_child (GTK_PANED (hpaned), frame1); + * gtk_paned_set_start_child_resize (GTK_PANED (hpaned), TRUE); + * gtk_paned_set_start_child_shrink (GTK_PANED (hpaned), FALSE); * gtk_widget_set_size_request (frame1, 50, -1); * - * gtk_paned_pack2 (GTK_PANED (hpaned), frame2, FALSE, FALSE); + * gtk_paned_set_end_child (GTK_PANED (hpaned), frame2); + * gtk_paned_set_end_child_resize (GTK_PANED (hpaned), FALSE); + * gtk_paned_set_end_child_shrink (GTK_PANED (hpaned), FALSE); * gtk_widget_set_size_request (frame2, 50, -1); * ]| */ @@ -1555,6 +1559,13 @@ gtk_paned_new (GtkOrientation orientation) NULL); } +/** + * gtk_paned_set_start_child: + * @paned: a #GtkPaned + * @child: the widget to add + * + * Sets the start child of @paned to @child. + */ void gtk_paned_set_start_child (GtkPaned *paned, GtkWidget *child) @@ -1591,6 +1602,13 @@ gtk_paned_get_start_child (GtkPaned *paned) return paned->start_child; } +/** + * gtk_paned_set_resize_start_child: + * @paned: a #GtkPaned + * @resize: %TRUE to let the start child be resized + * + * Sets the #GtkPaned:resize-start-child property + */ void gtk_paned_set_resize_start_child (GtkPaned *paned, gboolean resize) @@ -1605,6 +1623,14 @@ gtk_paned_set_resize_start_child (GtkPaned *paned, g_object_notify (G_OBJECT (paned), "resize-start-child"); } +/** + * gtk_paned_get_resize_start_child: + * @paned: a #GtkPaned + * + * Returns whether the start child can be resized. + * + * Returns: %TRUE if the start child is resizable + */ gboolean gtk_paned_get_resize_start_child (GtkPaned *paned) { @@ -1613,6 +1639,13 @@ gtk_paned_get_resize_start_child (GtkPaned *paned) return paned->resize_start_child; } +/** + * gtk_paned_set_shrink_start_child: + * @paned: a #GtkPaned + * @resize: %TRUE to let the start child be shrunk + * + * Sets the #GtkPaned:shrink-start-child property + */ void gtk_paned_set_shrink_start_child (GtkPaned *paned, gboolean shrink) @@ -1627,6 +1660,14 @@ gtk_paned_set_shrink_start_child (GtkPaned *paned, g_object_notify (G_OBJECT (paned), "shrink-start-child"); } +/** + * gtk_paned_get_shrink_start_child: + * @paned: a #GtkPaned + * + * Returns whether the start child can be shrunk. + * + * Returns: %TRUE if the start child is shrinkable + */ gboolean gtk_paned_get_shrink_start_child (GtkPaned *paned) { @@ -1636,14 +1677,11 @@ gtk_paned_get_shrink_start_child (GtkPaned *paned) } /** - * gtk_paned_get_end_child: + * gtk_paned_set_end_child: * @paned: a #GtkPaned + * @child: the widget to add * - * Retrieves the end child of the given #GtkPaned. - * - * See also: #GtkPaned:end-child - * - * Returns: (transfer none) (nullable): the end child widget + * Sets the end child of @paned to @child. */ void gtk_paned_set_end_child (GtkPaned *paned, @@ -1663,6 +1701,16 @@ gtk_paned_set_end_child (GtkPaned *paned, g_object_notify (G_OBJECT (paned), "end-child"); } +/** + * gtk_paned_get_end_child: + * @paned: a #GtkPaned + * + * Retrieves the end child of the given #GtkPaned. + * + * See also: #GtkPaned:end-child + * + * Returns: (transfer none) (nullable): the end child widget + */ GtkWidget * gtk_paned_get_end_child (GtkPaned *paned) { @@ -1671,6 +1719,13 @@ gtk_paned_get_end_child (GtkPaned *paned) return paned->end_child; } +/** + * gtk_paned_set_resize_end_child: + * @paned: a #GtkPaned + * @resize: %TRUE to let the end child be resized + * + * Sets the #GtkPaned:resize-end-child property + */ void gtk_paned_set_resize_end_child (GtkPaned *paned, gboolean resize) @@ -1685,6 +1740,14 @@ gtk_paned_set_resize_end_child (GtkPaned *paned, g_object_notify (G_OBJECT (paned), "resize-end-child"); } +/** + * gtk_paned_get_resize_end_child: + * @paned: a #GtkPaned + * + * Returns whether the end child can be resized. + * + * Returns: %TRUE if the end child is resizable + */ gboolean gtk_paned_get_resize_end_child (GtkPaned *paned) { @@ -1693,6 +1756,13 @@ gtk_paned_get_resize_end_child (GtkPaned *paned) return paned->resize_end_child; } +/** + * gtk_paned_set_shrink_end_child: + * @paned: a #GtkPaned + * @resize: %TRUE to let the end child be shrunk + * + * Sets the #GtkPaned:shrink-end-child property + */ void gtk_paned_set_shrink_end_child (GtkPaned *paned, gboolean shrink) @@ -1707,6 +1777,14 @@ gtk_paned_set_shrink_end_child (GtkPaned *paned, g_object_notify (G_OBJECT (paned), "shrink-end-child"); } +/** + * gtk_paned_get_shrink_end_child: + * @paned: a #GtkPaned + * + * Returns whether the end child can be shrunk. + * + * Returns: %TRUE if the end child is shrinkable + */ gboolean gtk_paned_get_shrink_end_child (GtkPaned *paned) { |