Functions¶
|
|
|
|
|
|
|
Details¶
- GnomeAutoarGtk.chooser_advanced_get(advanced, format, filter)¶
- Parameters:
advanced (
Gtk.Widget
) – aGtk.Grid
returned byGnomeAutoarGtk.chooser_advanced_new
()format (
int
) – the place to store theGnomeAutoar.Format
selected by the userfilter (
int
) – the place to store theGnomeAutoar.Filter
selected by the user
- Returns:
True
if format and filter are set.False
if 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.Format
default_filter (
GnomeAutoar.Filter
) – anGnomeAutoar.Filter
- Returns:
a new
Gtk.Grid
widget- Return type:
Create a
Gtk.Grid
with 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.ComboBox
returned byGnomeAutoarGtk.chooser_simple_new
()format (
int
) – the place to store theGnomeAutoar.Format
selected by the userfilter (
int
) – the place to store theGnomeAutoar.Filter
selected by the user
- Returns:
True
if format and filter are set.False
if 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.Format
default_filter (
GnomeAutoar.Filter
) – anGnomeAutoar.Filter
- Returns:
a new
Gtk.ComboBox
widget- Return type:
Create a
Gtk.ComboBox
with 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.