TreeModel: add missing nullability annotations

This commit is contained in:
Bilal Elmoussaoui
2020-11-24 18:04:34 +01:00
committed by Matthias Clasen
parent 50310f7b14
commit 845d2e5433

View File

@@ -731,9 +731,10 @@ gtk_tree_path_new_from_indicesv (int *indices,
*
* This string is a “:” separated list of numbers.
* For example, “4:10:0:3” would be an acceptable
* return value for this string.
* return value for this string. If the path has
* depth 0, %NULL is returned.
*
* Returns: A newly-allocated string.
* Returns: (nullable): A newly-allocated string.
* Must be freed with g_free().
*/
char *
@@ -1316,7 +1317,7 @@ gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model,
* For example, “4:10:0:3” would be an acceptable
* return value for this string.
*
* Returns: a newly-allocated string.
* Returns: (nullable): a newly-allocated string.
* Must be freed with g_free().
*/
char *