GimpUi.prop_file_chooser_button_new

function prop_file_chooser_button_new(config: GObject.Object, property_name: String, title: String, action: Gtk.FileChooserAction): Gtk.Widget {
    // Gjs wrapper for gimp_prop_file_chooser_button_new()
}
  

Creates a Gtk.FileChooserButton to edit the specified path property.

Note that Gtk.FileChooserButton implements the Gtk.FileChooser interface; you can use the Gtk.FileChooser API with it.

Since 2.4

config

object to which property is attached.

property_name

name of path property.

title

the title of the browse dialog.

action

the open mode for the widget.

Returns

A new Gtk.FileChooserButton.