[gtk/columnview-rubberbanding: 32/32] gtk-demo: Make gridview demo use rubberbanding
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/columnview-rubberbanding: 32/32] gtk-demo: Make gridview demo use rubberbanding
- Date: Mon, 1 Jun 2020 12:31:54 +0000 (UTC)
commit 63500e1cde481c01661ffce2026eef32ef569bac
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 23 14:57:39 2019 -0500
gtk-demo: Make gridview demo use rubberbanding
demos/gtk-demo/listview_colors.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/listview_colors.c b/demos/gtk-demo/listview_colors.c
index 233d11af5d..c67f4ee4e8 100644
--- a/demos/gtk-demo/listview_colors.c
+++ b/demos/gtk-demo/listview_colors.c
@@ -422,9 +422,10 @@ create_color_grid (void)
g_object_unref (factory);
gtk_grid_view_set_max_columns (GTK_GRID_VIEW (gridview), 24);
+ gtk_grid_view_set_enable_rubberband (GTK_GRID_VIEW (gridview), TRUE);
model = G_LIST_MODEL (gtk_sort_list_model_new (create_colors_model (), NULL));
- selection = G_LIST_MODEL (gtk_no_selection_new (model));
+ selection = G_LIST_MODEL (gtk_multi_selection_new (model));
gtk_grid_view_set_model (GTK_GRID_VIEW (gridview), selection);
g_object_unref (selection);
g_object_unref (model);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]