filechooserwidget: Add a grid view
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 22 Oct 2022 12:51:36 +0000 (09:51 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 13 Dec 2022 17:45:15 +0000 (14:45 -0300)
commit27613e3bc5ff24f5f3b6206a8d08bffe0e1f8996
tree7633bcd22455c3f0da51a5e353119e39e00f1b86
parenta9be0be32b77c1bdacc5ab729abf82941ccf23c3
filechooserwidget: Add a grid view

Add a grid view outside of the widgetry tree. The grid view mimics
the column view using bindings, so we only need to manage the column
view.

Also add a button in the path bar section to toggle the view. This
is handled as a new 'toggle-view' action in the file chooser.

The way switching between views currently work is by setting either
the column or grid view as the child of the GtkScrolledWindow. This
has the benefit of unmapping the unused view, which is nice and can
avoid some tricky situations with thumbnails.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/233
gtk/gtkfilechooserwidget.c
gtk/ui/gtkfilechooserwidget.ui