Gimp.Resource.select_new

function select_new(title: String, resource: Gimp.Resource, resource_type: GObject.Type): String {
    // Gjs wrapper for gimp_resource_select_new()
}
  

Invoke a resource chooser dialog which may call callback with the chosen resource and owner's @data.

A proxy to a remote dialog in core, which knows the model i.e. installed resources.

Generic on type of Gimp.Resource subclass passed in resource_type.

title

Title of the resource selection dialog.

resource

The resource to set as the initial choice.

resource_type

The type of the subclass of resource.

Returns

the name of a temporary PDB procedure. The string belongs to the resource selection dialog and will be freed automatically when the dialog is closed.