diff options
author | Benjamin Otte <otte@redhat.com> | 2018-09-24 04:42:15 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-30 19:26:45 -0400 |
commit | e5add36a17cb64e6b300830f037d373bb8c0e031 (patch) | |
tree | 2d532fa8735be05eee642eb86cae29fe6641c817 /gtk/gtklistitemfactoryprivate.h | |
parent | fe14181d4e69ac261dd7878ac3d952609866d4b7 (diff) | |
download | gtk+-e5add36a17cb64e6b300830f037d373bb8c0e031.tar.gz |
listview: Change how binding is done
We now don't let the functions create widgets for the item from the
listmodel, instead we hand out a GtkListItem for them to add a widget
to.
GtkListItems are created in advance and can only be filled in by the
binding code by gtk_container_add()ing a widget.
However, they are GObjects, so they can provide properties that the
binding code can make use of - either via notify signals or GBinding.
Diffstat (limited to 'gtk/gtklistitemfactoryprivate.h')
-rw-r--r-- | gtk/gtklistitemfactoryprivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklistitemfactoryprivate.h b/gtk/gtklistitemfactoryprivate.h index 21bc5b5586..779251344b 100644 --- a/gtk/gtklistitemfactoryprivate.h +++ b/gtk/gtklistitemfactoryprivate.h @@ -38,8 +38,8 @@ typedef struct _GtkListItemFactoryClass GtkListItemFactoryClass; GType gtk_list_item_factory_get_type (void) G_GNUC_CONST; -GtkListItemFactory * gtk_list_item_factory_new (GtkListCreateWidgetFunc create_func, - GtkListBindWidgetFunc bind_func, +GtkListItemFactory * gtk_list_item_factory_new (GtkListItemSetupFunc setup_func, + GtkListItemBindFunc bind_func, gpointer user_data, GDestroyNotify user_destroy); |