summaryrefslogtreecommitdiff
path: root/gtk/gtkfiledialog.h
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2022-12-15 21:35:56 -0500
committerChristopher Davis <christopherdavis@gnome.org>2022-12-16 10:16:52 -0500
commit143229f829051c8c84a5a38e8e6cd880986c9bee (patch)
tree8cd232e238ab0344ce9108702572d4745e89c4bb /gtk/gtkfiledialog.h
parent3e86bc65f5d482b4e512b802739cc2d5217e4b38 (diff)
downloadgtk+-143229f829051c8c84a5a38e8e6cd880986c9bee.tar.gz
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
Diffstat (limited to 'gtk/gtkfiledialog.h')
-rw-r--r--gtk/gtkfiledialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkfiledialog.h b/gtk/gtkfiledialog.h
index 34664d646b..5c3cac52bc 100644
--- a/gtk/gtkfiledialog.h
+++ b/gtk/gtkfiledialog.h
@@ -148,4 +148,11 @@ GListModel * gtk_file_dialog_select_multiple_folders_finish
GAsyncResult *result,
GError **error);
+GDK_AVAILABLE_IN_4_10
+const char * gtk_file_dialog_get_accept_label (GtkFileDialog *self);
+
+GDK_AVAILABLE_IN_4_10
+void gtk_file_dialog_set_accept_label (GtkFileDialog *self,
+ const char *accept_label);
+
G_END_DECLS