gtk-demo: Crank up max columns of gridview

This lets us fit more cells on screen.
This commit is contained in:
Matthias Clasen
2019-12-15 17:03:11 -05:00
parent fe3dd5cd8b
commit ae084d2929

View File

@@ -439,7 +439,7 @@ do_listview_colors (GtkWidget *do_widget)
gtk_scrollable_set_hscroll_policy (GTK_SCROLLABLE (gridview), GTK_SCROLL_NATURAL);
gtk_scrollable_set_vscroll_policy (GTK_SCROLLABLE (gridview), GTK_SCROLL_NATURAL);
gtk_grid_view_set_max_columns (GTK_GRID_VIEW (gridview), 12);
gtk_grid_view_set_max_columns (GTK_GRID_VIEW (gridview), 24);
model = G_LIST_MODEL (gtk_sort_list_model_new (create_colors_model (), NULL));
selection = gtk_no_selection_new (model);