Function

GimpResourceselect_new

Declaration [src]

const gchar*
gimp_resource_select_new (
  const gchar* title,
  GimpResource* resource,
  GType resource_type,
  GimpResourceChoosedCallback callback,
  gpointer owner_data,
  GDestroyNotify data_destroy
)

Description [src]

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 GimpResource subclass passed in resource_type.

Parameters

title

Type: const gchar*

Title of the resource selection dialog.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
resource

Type: GimpResource

The resource to set as the initial choice.

The data is owned by the caller of the function.
resource_type

Type: GType

The type of the subclass of resource.

callback

Type: GimpResourceChoosedCallback

The callback function to call when a user chooses a resource.

owner_data

Type: gpointer

The run_data given to callback.

The argument can be NULL.
The data is owned by the caller of the function.
data_destroy

Type: GDestroyNotify

The destroy function for owner_data.

Return value

Type: const gchar*

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.

The data is owned by the called function.
The value is a NUL terminated UTF-8 string.