Function

GimpResourceget_by_name

Declaration [src]

GimpResource*
gimp_resource_get_by_name (
  GType resource_type,
  const gchar* resource_name
)

Description [src]

Returns the resource with the given resource_type and resource_name.

Available since:3.0

Parameters

resource_type GType
 

The GType of the resource.

resource_name const gchar*
 

The name of the resource.

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

Return value

Returns: GimpResource
 

The resource.

 The caller of the function takes ownership of the data, and is responsible for freeing it.