gtkfiledialog: Allow devs to set custom accept labels
authorChristopher Davis <christopherdavis@gnome.org>
Fri, 16 Dec 2022 02:35:56 +0000 (21:35 -0500)
committerChristopher Davis <christopherdavis@gnome.org>
Fri, 16 Dec 2022 15:16:52 +0000 (10:16 -0500)
commit143229f829051c8c84a5a38e8e6cd880986c9bee
tree8cd232e238ab0344ce9108702572d4745e89c4bb
parent3e86bc65f5d482b4e512b802739cc2d5217e4b38
gtkfiledialog: Allow devs to set custom accept labels

Accept labels can be used for additional context regarding
the purpose of a file. The old GtkFileChooser APIs allowed
developers to set it, but the initial FileDialog API was missing
this functionality.

This commit adds `gtk_file_dialog_set_accept_label ()` to
restore the missing functionality.

Closes https://gitlab.gnome.org/GNOME/gtk/-/issues/5421
gtk/gtkfiledialog.c
gtk/gtkfiledialog.h