| Top |  |  |  |  | 
autoar-gtk-chooser contains two widgets for users to choose preferred archive format and filter.
GtkWidget * autoar_gtk_chooser_simple_new (AutoarFormat default_format,AutoarFilter default_filter);
Create a GtkComboBox with a list of common archive format. There is also
an option called "Other format…", which will use
autoar_gtk_chooser_advanced_new() and
autoar_gtk_chooser_advanced_get() to select less common archive
format. Arguments default_format
 and default_filter
 are the default archive
format selected on the returned widget. You may want to get the preferred
format of users using autoar_pref_get_default_format() and
autoar_pref_get_default_filter(), or just set them to 1 to select
the default archive format.
gboolean autoar_gtk_chooser_simple_get (GtkWidget *simple,int *format,int *filter);
Gets the selected archive format of the widget created by
autoar_gtk_chooser_simple_new().
| simple | a GtkComboBox returned by  | |
| format | the place to store the AutoarFormat selected by the user | |
| filter | the place to store the AutoarFilter selected by the user | 
GtkWidget * autoar_gtk_chooser_advanced_new (AutoarFormat default_format,AutoarFilter default_filter);
Create a GtkGrid with two lists. One list shows all available formats, and the other list shows all available filters.
gboolean autoar_gtk_chooser_advanced_get (GtkWidget *advanced,int *format,int *filter);
Gets the selected archive format of the widget created by
autoar_gtk_chooser_advanced_new().
| advanced | a GtkGrid returned by  | |
| format | the place to store the AutoarFormat selected by the user | |
| filter | the place to store the AutoarFilter selected by the user |