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/gtkcolumnview.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/gtkcolumnview.h')
-rw-r--r-- | gtk/gtkcolumnview.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkcolumnview.h b/gtk/gtkcolumnview.h index 0983ea2c39..9b49f85a19 100644 --- a/gtk/gtkcolumnview.h +++ b/gtk/gtkcolumnview.h @@ -26,6 +26,7 @@ #include <gtk/gtktypes.h> #include <gtk/gtksortlistmodel.h> +#include <gtk/gtkselectionmodel.h> #include <gtk/gtksorter.h> G_BEGIN_DECLS @@ -67,10 +68,10 @@ void gtk_column_view_insert_column (GtkColumnView GtkColumnViewColumn *column); GDK_AVAILABLE_IN_ALL -GListModel * gtk_column_view_get_model (GtkColumnView *self); +GtkSelectionModel * gtk_column_view_get_model (GtkColumnView *self); GDK_AVAILABLE_IN_ALL void gtk_column_view_set_model (GtkColumnView *self, - GListModel *model); + GtkSelectionModel *model); GDK_AVAILABLE_IN_ALL gboolean gtk_column_view_get_show_row_separators (GtkColumnView *self); |