Skip to content

generate: Handle the element-type attribute for ListModels

Emmanuele Bassi requested to merge ebassi/element-type into main

When returning a GListModel, GTK annotates the element type held inside the list model with:

(attributes element-type=GtkWindow)

as the (element-type) annotation can only work for arrays, linked lists, and hash tables.

We still want to indicate what is the expected type inside a GListModel, as it's completely opaque otherwise.

Merge request reports