[gtk: 1/2] Annotate GtkTreeModelSort.new_with_model() appropriately
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Annotate GtkTreeModelSort.new_with_model() appropriately
- Date: Tue, 3 Dec 2019 15:37:34 +0000 (UTC)
commit e4b8481dd0ca11f33a4e05a0f250b339a04a1282
Author: LutzLue <luemken pre-sense de>
Date: Tue Dec 3 15:36:42 2019 +0000
Annotate GtkTreeModelSort.new_with_model() appropriately
The new_with_model() method is a constructor, and it returns a GtkTreeModelSort
instance, even if the C API returns a GtkTreeModel for the convenience of C
developers.
Fixes: #1077
gtk/gtktreemodelsort.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c
index 2e3b808e75..75476bad4b 100644
--- a/gtk/gtktreemodelsort.c
+++ b/gtk/gtktreemodelsort.c
@@ -526,12 +526,12 @@ gtk_tree_model_sort_drag_source_init (GtkTreeDragSourceIface *iface)
}
/**
- * gtk_tree_model_sort_new_with_model:
+ * gtk_tree_model_sort_new_with_model: (constructor)
* @child_model: A #GtkTreeModel
*
- * Creates a new #GtkTreeModel, with @child_model as the child model.
+ * Creates a new #GtkTreeModelSort, with @child_model as the child model.
*
- * Returns: (transfer full): A new #GtkTreeModel.
+ * Returns: (transfer full) (type Gtk.TreeModelSort): A new #GtkTreeModelSort.
*/
GtkTreeModel *
gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]