FileChooserIF.addChoice

Adds a 'choice' to the file chooser. This is typically implemented as a combobox or, for boolean choices, as a checkbutton. You can select a value using gtk_file_chooser_set_choice() before the dialog is shown, and you can obtain the user-selected value in the ::response signal handler using gtk_file_chooser_get_choice().

Compare gtk_file_chooser_set_extra_widget().

interface FileChooserIF
void
addChoice
(
string id
,
string label
,
string[] options
,
string[] optionLabels
)

Parameters

id string

id for the added choice

label string

user-visible label for the added choice

options string[]

ids for the options of the choice, or %NULL for a boolean choice

optionLabels string[]

user-visible labels for the options, must be the same length as @options

Meta

Since

3.22