[gtk/ebassi/docs-for-master: 9/26] docs: Add missing documentation for GtkCellRenderer




commit 2aec47f56f78fce8a5bc15e7cfb12eadd98b9a41
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Dec 16 15:15:58 2020 +0000

    docs: Add missing documentation for GtkCellRenderer

 gtk/gtkcellrenderer.c | 30 ++++++++++++++++++++++++++++++
 gtk/gtkcellrenderer.h |  2 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 1315d8878b..e5fccf927c 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -1691,6 +1691,13 @@ gtk_cell_renderer_get_state (GtkCellRenderer      *cell,
   return state;
 }
 
+/**
+ * gtk_cell_renderer_set_is_expander:
+ * @cell: a #GtkCellRenderer
+ * @is_expander: whether @cell is an expander
+ *
+ * Sets whether the given #GtkCellRenderer is an expander.
+ */
 void
 gtk_cell_renderer_set_is_expander (GtkCellRenderer *cell,
                                    gboolean         is_expander)
@@ -1709,6 +1716,14 @@ gtk_cell_renderer_set_is_expander (GtkCellRenderer *cell,
     }
 }
 
+/**
+ * gtk_cell_renderer_get_is_expander:
+ * @cell: a #GtkCellRenderer
+ *
+ * Checks whether the given #GtkCellRenderer is an expander.
+ *
+ * Returns: %TRUE if @cell is an expander, and %FALSE otherwise
+ */
 gboolean
 gtk_cell_renderer_get_is_expander (GtkCellRenderer *cell)
 {
@@ -1719,6 +1734,13 @@ gtk_cell_renderer_get_is_expander (GtkCellRenderer *cell)
   return priv->is_expander;
 }
 
+/**
+ * gtk_cell_renderer_set_is_expanded:
+ * @cell: a #GtkCellRenderer
+ * @is_expanded: whether @cell should be expanded
+ *
+ * Sets whether the given #GtkCellRenderer is expanded.
+ */
 void
 gtk_cell_renderer_set_is_expanded (GtkCellRenderer *cell,
                                    gboolean         is_expanded)
@@ -1737,6 +1759,14 @@ gtk_cell_renderer_set_is_expanded (GtkCellRenderer *cell,
     }
 }
 
+/**
+ * gtk_cell_renderer_get_is_expanded:
+ * @cell: a #GtkCellRenderer
+ *
+ * Checks whether the given #GtkCellRenderer is expanded.
+ *
+ * Returns: %TRUE if the cell renderer is expanded
+ */
 gboolean
 gtk_cell_renderer_get_is_expanded (GtkCellRenderer *cell)
 {
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index 6eb53587e9..ca59826a02 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -280,7 +280,7 @@ gboolean         gtk_cell_renderer_get_is_expander (GtkCellRenderer     *cell);
 
 GDK_AVAILABLE_IN_ALL
 void             gtk_cell_renderer_set_is_expanded (GtkCellRenderer     *cell,
-                                                    gboolean             is_expander);
+                                                    gboolean             is_expanded);
 GDK_AVAILABLE_IN_ALL
 gboolean         gtk_cell_renderer_get_is_expanded (GtkCellRenderer     *cell);
 


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