filechooser: Set date and time after cell is a child of filechooserwidget
authorCorey Berla <corey@berla.me>
Tue, 11 Apr 2023 00:58:09 +0000 (17:58 -0700)
committerCorey Berla <corey@berla.me>
Tue, 11 Apr 2023 01:02:35 +0000 (18:02 -0700)
commit2a70093a309481cf633086a5e8f0c8bc6d2c89f0
tree73c1f95c5c0927ce33a203d7bf3bf8f89b138c32
parentdd407dab000dc4de7d078c6270c93d303a1c18c6
filechooser: Set date and time after cell is a child of filechooserwidget

The date/time column relies on the filechooserwidget to format the date
properly.  During bind, the filechoosercell, get the filechooserwidget
ancestor, but now due to changes in the listview, the cell isn't a
child of the filechooserwidget at that point.  Since this is deeply
ingrained into the filechooserwidget, let's keep the same behavior,
but move it to filechoosercell in realize.  Alternatively, we could have
used a signal factory (with the file chooser widget as the user data),
but that would have been a major overhaul.
gtk/gtkfilechoosercell.c
gtk/gtkfilechooserwidget.c
gtk/gtkfilechooserwidgetprivate.h
gtk/ui/gtkfilechooserwidget.ui