Use attributes instead of element-type annotation

The `element-type` annotation is for GList and GSList only, and turns
out adding support for GListModel in gobject-introspection breaks Vala
and the GIR for GIO.

Instead of using `element-type`, we can use the `attributes` annotation,
which is ignored by code generators based on the GIR data.
This commit is contained in:
Emmanuele Bassi 2020-04-28 13:24:06 +01:00
parent f66950f48c
commit 2a11f5f889

View File

@ -2556,7 +2556,8 @@ gtk_window_get_modal (GtkWindow *window)
* callbacks that might destroy the widgets or add new ones, be aware that * callbacks that might destroy the widgets or add new ones, be aware that
* the list of toplevels will change and emit the "items-changed" signal. * the list of toplevels will change and emit the "items-changed" signal.
* *
* Returns: (element-type GtkWidget) (transfer none): the list of toplevel widgets * Returns: (transfer none) (attributes element-type=GtkWindow): the list
* of toplevel widgets
*/ */
GListModel * GListModel *
gtk_window_get_toplevels (void) gtk_window_get_toplevels (void)