Functions

  chooser_advanced_get (advanced, format, filter)
  chooser_advanced_new (default_format, default_filter)
  chooser_simple_get (simple, format, filter)
  chooser_simple_new (default_format, default_filter)

Details

GnomeAutoarGtk.chooser_advanced_get(advanced, format, filter)
Parameters:
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:

bool

Gets the selected archive format of the widget created by GnomeAutoarGtk.chooser_advanced_new().

GnomeAutoarGtk.chooser_advanced_new(default_format, default_filter)
Parameters:
Returns:

a new Gtk.Grid widget

Return type:

Gtk.Widget

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:
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:

bool

Gets the selected archive format of the widget created by GnomeAutoarGtk.chooser_simple_new().

GnomeAutoarGtk.chooser_simple_new(default_format, default_filter)
Parameters:
Returns:

a new Gtk.ComboBox widget

Return type:

Gtk.Widget

Create a Gtk.ComboBox with a list of common archive format. There is also an option called “Other format…”, which will use GnomeAutoarGtk.chooser_advanced_new() and GnomeAutoarGtk.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.