flowbox: Fix annotation for GListModel binding callback
authorSam Thursfield <sam@afuera.me.uk>
Mon, 25 Sep 2017 13:42:46 +0000 (14:42 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 27 Sep 2017 11:45:08 +0000 (13:45 +0200)
The GtkFlowBoxCreateWidgetFunc type lacked GObject Introspection
annotations for its arguments. This made gtk_flow_box_bind_model()
unusable from Python as the callback function would be passed useless
values.

The annotations that I've added match those of the similar callback
type GtkListBoxCreateWidgetFunc.

https://bugzilla.gnome.org/show_bug.cgi?id=780758

gtk/gtkflowbox.h

index fa059c37658de06a0ee5579c3e7b2a44d5664d8f..ba07f55e7a63818fb6a5f7edfa49bbc31bc48c7d 100644 (file)
@@ -101,8 +101,8 @@ struct _GtkFlowBoxChildClass
 
 /**
  * GtkFlowBoxCreateWidgetFunc:
- * @item: the item from the model for which to create a widget for
- * @user_data: user data from gtk_flow_box_bind_model()
+ * @item: (type GObject): the item from the model for which to create a widget for
+ * @user_data: (closure): user data from gtk_flow_box_bind_model()
  *
  * Called for flow boxes that are bound to a #GListModel with
  * gtk_flow_box_bind_model() for each item that gets added to the model.