Annotate more functions returning GListModel

Now that we can have an element-type annotation, we should use it where
needed.
This commit is contained in:
Emmanuele Bassi 2020-04-27 14:46:23 +01:00
parent 2a11f5f889
commit 555230ec9c
4 changed files with 11 additions and 8 deletions

View File

@ -2481,7 +2481,7 @@ gtk_assistant_pages_new (GtkAssistant *assistant)
*
* Gets a list model of the assistant pages.
*
* Returns: (transfer full): A list model of the pages.
* Returns: (transfer full) (attributes element-type=GtkAssistantPage): A list model of the pages.
*/
GListModel *
gtk_assistant_get_pages (GtkAssistant *assistant)

View File

@ -2172,8 +2172,8 @@ gtk_constraint_layout_add_constraints_from_description (GtkConstraintLayout *lay
* Applications should try hard to avoid calling this function
* because of the slowdowns.
*
* Returns: (transfer full): a #GListModel tracking @layout's
* constraints
* Returns: (transfer full) (attributes element-type=GtkConstraint): a
* #GListModel tracking @layout's constraints
*/
GListModel *
gtk_constraint_layout_observe_constraints (GtkConstraintLayout *layout)
@ -2212,8 +2212,8 @@ gtk_constraint_layout_observe_constraints (GtkConstraintLayout *layout)
* Applications should try hard to avoid calling this function
* because of the slowdowns.
*
* Returns: (transfer full): a #GListModel tracking @layout's
* guides
* Returns: (transfer full) (attributes element-type=GtkConstraintGuide): a
* #GListModel tracking @layout's guides
*/
GListModel *
gtk_constraint_layout_observe_guides (GtkConstraintLayout *layout)

View File

@ -7190,7 +7190,8 @@ gtk_notebook_pages_new (GtkNotebook *notebook)
* Returns a #GListModel that contains the pages of the notebook,
* and can be used to keep an up-to-date view.
*
* Returns: (transfer full): a #GListModel for the notebook's children
* Returns: (transfer full) (attributes element-type=GtkNotebookPage): a
* #GListModel for the notebook's children
*/
GListModel *
gtk_notebook_get_pages (GtkNotebook *notebook)

View File

@ -11677,7 +11677,8 @@ gtk_widget_child_observer_destroyed (gpointer widget)
* Applications should try hard to avoid calling this function because of
* the slowdowns.
*
* Returns: (transfer full): a #GListModel tracking @widget's children
* Returns: (transfer full) (attributes element-type=GtkWidget): a #GListModel
* tracking @widget's children
**/
GListModel *
gtk_widget_observe_children (GtkWidget *widget)
@ -11749,7 +11750,8 @@ gtk_widget_controller_list_get_item (gpointer item,
* Applications should try hard to avoid calling this function because of
* the slowdowns.
*
* Returns: (transfer full): a #GListModel tracking @widget's controllers
* Returns: (transfer full) (attributes element-type=GtkEventController): a
* #GListModel tracking @widget's controllers
**/
GListModel *
gtk_widget_observe_controllers (GtkWidget *widget)