diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-07-05 22:09:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-07-08 00:08:21 -0400 |
commit | 6fc7485077505c946ec8f0878e22e418a46a7679 (patch) | |
tree | d788d2f50aed400261eed822bfbcb2dfd90c0ade /gtk/gtkfilechooser.h | |
parent | 2b77eaa1ae8ab835e42dd082375e406c6b4bd906 (diff) | |
download | gtk+-6fc7485077505c946ec8f0878e22e418a46a7679.tar.gz |
GtkFileChooser: Add abstract api for comboboxes and checkbuttons
This commit adds API for adding combo boxes and check buttons to
GtkFileChooser, and getting the selected value back in ::response.
In contrast to gtk_file_chooser_set_extra_widget, these APIs are
abstract and suitable for implementation in GtkFileChooserNative.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Diffstat (limited to 'gtk/gtkfilechooser.h')
-rw-r--r-- | gtk/gtkfilechooser.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h index d1f5543e52..92cdbb3658 100644 --- a/gtk/gtkfilechooser.h +++ b/gtk/gtkfilechooser.h @@ -304,6 +304,23 @@ gboolean gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser, GDK_AVAILABLE_IN_ALL GSList *gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser); +GDK_AVAILABLE_IN_3_22 +void gtk_file_chooser_add_choice (GtkFileChooser *chooser, + const char *id, + const char *label, + const char **options, + const char **option_labels); +GDK_AVAILABLE_IN_3_22 +void gtk_file_chooser_remove_choice (GtkFileChooser *chooser, + const char *id); +GDK_AVAILABLE_IN_3_22 +void gtk_file_chooser_set_choice (GtkFileChooser *chooser, + const char *id, + const char *option); +GDK_AVAILABLE_IN_3_22 +const char *gtk_file_chooser_get_choice (GtkFileChooser *chooser, + const char *id); + G_END_DECLS #endif /* __GTK_FILE_CHOOSER_H__ */ |