summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2021-01-30 17:58:33 +0000
committerTimm Bäder <mail@baedert.org>2021-01-30 17:58:33 +0000
commit234ba90e2bec1e6fc6699b9cb35d8e43125d109f (patch)
tree7a95a95664cb77a2153127aeaea4974bf827d7a9
parentbdd2244f75d2fb2925ae3d4c20c6d819c46f625f (diff)
parentcd7ec8ac929c056d6d8027f08f45e747e4eaa7b3 (diff)
downloadgtk+-234ba90e2bec1e6fc6699b9cb35d8e43125d109f.tar.gz
Merge branch 'mcclurgm-master-patch-63249' into 'master'
Document nullability of gtk_list_box_get_selected_row See merge request GNOME/gtk!3137
-rw-r--r--gtk/gtklistbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 72bc7c8539..6445e70d05 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -724,13 +724,13 @@ gtk_list_box_init (GtkListBox *box)
* gtk_list_box_get_selected_row:
* @box: a #GtkListBox
*
- * Gets the selected row.
+ * Gets the selected row, or %NULL if no rows are selected.
*
* Note that the box may allow multiple selection, in which
* case you should use gtk_list_box_selected_foreach() to
* find all selected rows.
*
- * Returns: (transfer none): the selected row
+ * Returns: (transfer none) (nullable): the selected row or %NULL
*/
GtkListBoxRow *
gtk_list_box_get_selected_row (GtkListBox *box)
@@ -746,7 +746,7 @@ gtk_list_box_get_selected_row (GtkListBox *box)
* @index_: the index of the row
*
* Gets the n-th child in the list (not counting headers).
- * If @_index is negative or larger than the number of items in the
+ * If @index_ is negative or larger than the number of items in the
* list, %NULL is returned.
*
* Returns: (transfer none) (nullable): the child #GtkWidget or %NULL