[gtk/bilelmoussaoui/g-i] g-i: Add nullable annotations to CellArea getters



commit c2fe438676cd3689a7f9bf95c668c68e2a5bd3c1
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Fri Feb 11 12:55:28 2022 +0100

    g-i: Add nullable annotations to CellArea getters
    
    Fixes https://github.com/gtk-rs/gtk4-rs/issues/891

 gtk/gtkcellarea.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c
index 5f8ac188db..3cb08fdee0 100644
--- a/gtk/gtkcellarea.c
+++ b/gtk/gtkcellarea.c
@@ -2858,7 +2858,7 @@ gtk_cell_area_activate (GtkCellArea         *area,
 /**
  * gtk_cell_area_set_focus_cell:
  * @area: a `GtkCellArea`
- * @renderer: the `GtkCellRenderer` to give focus to
+ * @renderer: (nullable): the `GtkCellRenderer` to give focus to
  *
  * Explicitly sets the currently focused cell to @renderer.
  *
@@ -2903,7 +2903,7 @@ gtk_cell_area_set_focus_cell (GtkCellArea     *area,
  *
  * Retrieves the currently focused cell for @area
  *
- * Returns: (transfer none): the currently focused cell in @area.
+ * Returns: (transfer none) (nullable): the currently focused cell in @area.
  */
 GtkCellRenderer *
 gtk_cell_area_get_focus_cell (GtkCellArea *area)
@@ -3211,7 +3211,7 @@ gtk_cell_area_set_edit_widget (GtkCellArea     *area,
  * Gets the `GtkCellRenderer` in @area that is currently
  * being edited.
  *
- * Returns: (transfer none): The currently edited `GtkCellRenderer`
+ * Returns: (transfer none) (nullable): The currently edited `GtkCellRenderer`
  */
 GtkCellRenderer   *
 gtk_cell_area_get_edited_cell (GtkCellArea *area)
@@ -3230,7 +3230,7 @@ gtk_cell_area_get_edited_cell (GtkCellArea *area)
  * Gets the `GtkCellEditable` widget currently used
  * to edit the currently edited cell.
  *
- * Returns: (transfer none): The currently active `GtkCellEditable` widget
+ * Returns: (transfer none) (nullable): The currently active `GtkCellEditable` widget
  */
 GtkCellEditable *
 gtk_cell_area_get_edit_widget (GtkCellArea *area)


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