Gimp.Resource.select_new

function select_new(title: String, parent_handle: Uint8Array, 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_data.

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

title

Title of the resource selection dialog.

parent_handle
resource

The resource to set as the initial choice.

resource_type

The type of the subclass of [class@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.