[gtk/ebassi/for-master: 1/2] Use attributes instead of element-type annotation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 1/2] Use attributes instead of element-type annotation
- Date: Tue, 28 Apr 2020 12:34:01 +0000 (UTC)
commit 2a11f5f8893170c65e0724511eeed66e3eb2f6b1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Apr 28 13:24:06 2020 +0100
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.
gtk/gtkwindow.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f35c1c0066..9319cce2ea 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2556,7 +2556,8 @@ gtk_window_get_modal (GtkWindow *window)
* 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.
*
- * Returns: (element-type GtkWidget) (transfer none): the list of toplevel widgets
+ * Returns: (transfer none) (attributes element-type=GtkWindow): the list
+ * of toplevel widgets
*/
GListModel *
gtk_window_get_toplevels (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]