diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-16 16:16:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-17 07:35:09 -0400 |
commit | a9c7f94e04207d95c0ff1f18f37477dab440d353 (patch) | |
tree | 69d151a4a9fd5f8592d245dcff4dc1f4bf20289c /gtk/gtklistview.h | |
parent | 31bb969cce30f30121d5b03730417aa41ae2e4b9 (diff) | |
download | gtk+-view-model-selection.tar.gz |
Change list widget to use a GtkSelectionModelview-model-selection
Change the type of the model property in GtkListView,
GtkColumnView and GtkGridView to be GtkSelectionModel.
The convenience of automatic interposition of a selection
model is minor, compared to the confusion.
Update all callers.
Diffstat (limited to 'gtk/gtklistview.h')
-rw-r--r-- | gtk/gtklistview.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtklistview.h b/gtk/gtklistview.h index afcfb6225f..d3c8cec583 100644 --- a/gtk/gtklistview.h +++ b/gtk/gtklistview.h @@ -25,6 +25,7 @@ #endif #include <gtk/gtklistbase.h> +#include <gtk/gtkselectionmodel.h> G_BEGIN_DECLS @@ -52,10 +53,10 @@ GDK_AVAILABLE_IN_ALL GtkWidget * gtk_list_view_new_with_factory (GtkListItemFactory *factory); GDK_AVAILABLE_IN_ALL -GListModel * gtk_list_view_get_model (GtkListView *self); +GtkSelectionModel * gtk_list_view_get_model (GtkListView *self); GDK_AVAILABLE_IN_ALL void gtk_list_view_set_model (GtkListView *self, - GListModel *model); + GtkSelectionModel *model); GDK_AVAILABLE_IN_ALL void gtk_list_view_set_factory (GtkListView *self, GtkListItemFactory *factory); |