filechooserwidget: Make context menus mostly work
authorMatthias Clasen <mclasen@redhat.com>
Fri, 14 Oct 2022 04:01:02 +0000 (00:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2022 02:34:40 +0000 (22:34 -0400)
commit44b5076cf2eb26b2b5f21a8f97fae1a31fc512c6
tree8631075655b9cf18b172256fcb86ed6daaedcb3e
parente5be9e10353ba51a2126e7ee2d26e01769e2057e
filechooserwidget: Make context menus mostly work

Move the gestures to the individual cells, and
make them trigger the context menu via an action
that takes item position and coordinates.

The semantics are changed slightly: the menu actions
now operate on the clicked item, not on the selection.

Still to do: Fix up keyboard activation.
gtk/gtkfilechoosercell.c [new file with mode: 0644]
gtk/gtkfilechoosercellprivate.h [new file with mode: 0644]
gtk/gtkfilechooserwidget.c
gtk/meson.build
gtk/ui/gtkfilechooserwidget.ui