[gtk+/gtk-3-22] flowbox: Fix annotation for GListModel binding	callback
- From: Rico Tzschichholz <ricotz src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/gtk-3-22] flowbox: Fix annotation for GListModel binding	callback
 
- Date: Wed, 27 Sep 2017 11:52:00 +0000 (UTC)
 
commit d6547060e93034c1032771a53195bae9e4f74181
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Sep 25 14:42:46 2017 +0100
    flowbox: Fix annotation for GListModel binding callback
    
    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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkflowbox.h b/gtk/gtkflowbox.h
index fa059c3..ba07f55 100644
--- a/gtk/gtkflowbox.h
+++ b/gtk/gtkflowbox.h
@@ -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.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]