Functions¶
|
|
|
|
|
|
|
Details¶
- GnomeAutoarGtk.chooser_advanced_get(advanced, format, filter)¶
- Parameters:
advanced (
Gtk.Widget) – aGtk.Gridreturned byGnomeAutoarGtk.chooser_advanced_new()format (
int) – the place to store theGnomeAutoar.Formatselected by the userfilter (
int) – the place to store theGnomeAutoar.Filterselected by the user
- Returns:
Trueif format and filter are set.Falseif there is no selected item on advanced, so format and filter are not modified.- Return type:
Gets the selected archive format of the widget created by
GnomeAutoarGtk.chooser_advanced_new().
- GnomeAutoarGtk.chooser_advanced_new(default_format, default_filter)¶
- Parameters:
default_format (
GnomeAutoar.Format) – anGnomeAutoar.Formatdefault_filter (
GnomeAutoar.Filter) – anGnomeAutoar.Filter
- Returns:
a new
Gtk.Gridwidget- Return type:
Create a
Gtk.Gridwith two lists. One list shows all available formats, and the other list shows all available filters.
- GnomeAutoarGtk.chooser_simple_get(simple, format, filter)¶
- Parameters:
simple (
Gtk.Widget) – aGtk.ComboBoxreturned byGnomeAutoarGtk.chooser_simple_new()format (
int) – the place to store theGnomeAutoar.Formatselected by the userfilter (
int) – the place to store theGnomeAutoar.Filterselected by the user
- Returns:
Trueif format and filter are set.Falseif there is no selected item on simple, so format and filter are not modified.- Return type:
Gets the selected archive format of the widget created by
GnomeAutoarGtk.chooser_simple_new().
- GnomeAutoarGtk.chooser_simple_new(default_format, default_filter)¶
- Parameters:
default_format (
GnomeAutoar.Format) – anGnomeAutoar.Formatdefault_filter (
GnomeAutoar.Filter) – anGnomeAutoar.Filter
- Returns:
a new
Gtk.ComboBoxwidget- Return type:
Create a
Gtk.ComboBoxwith a list of common archive format. There is also an option called “Other format…”, which will useGnomeAutoarGtk.chooser_advanced_new() andGnomeAutoarGtk.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.