[gtk: 2/4] centerlayout: Improve docs




commit e18211decabc337f9a313352dc6ab3d7c83cbdd9
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 30 23:36:23 2020 -0500

    centerlayout: Improve docs
    
    Explain what passing NULL does.

 gtk/gtkcenterlayout.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcenterlayout.c b/gtk/gtkcenterlayout.c
index e43fb24f1b..d9be591c5a 100644
--- a/gtk/gtkcenterlayout.c
+++ b/gtk/gtkcenterlayout.c
@@ -622,6 +622,8 @@ gtk_center_layout_get_baseline_position (GtkCenterLayout *self)
  * @widget (nullable): the new start widget
  *
  * Sets the new start widget of @self.
+ *
+ * To remove the existing start widget, pass %NULL.
  */
 void
 gtk_center_layout_set_start_widget (GtkCenterLayout *self,
@@ -649,7 +651,9 @@ gtk_center_layout_get_start_widget (GtkCenterLayout *self)
  * @self: a #GtkCenterLayout
  * @widget (nullable): the new center widget
  *
- * Sets the new center widget of @self
+ * Sets the new center widget of @self.
+ *
+ * To remove the existing center widget, pass %NULL.
  */
 void
 gtk_center_layout_set_center_widget (GtkCenterLayout *self,
@@ -677,7 +681,9 @@ gtk_center_layout_get_center_widget (GtkCenterLayout *self)
  * @self: a #GtkCenterLayout
  * @widget: (nullable) (transfer none): the new end widget
  *
- * Sets the new end widget of @self
+ * Sets the new end widget of @self.
+ *
+ * To remove the existing center widget, pass %NULL.
  */
 void
 gtk_center_layout_set_end_widget (GtkCenterLayout *self,


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