Method

GimpResourcerename

Declaration [src]

gboolean
gimp_resource_rename (
  GimpResource* resource,
  const gchar* new_name
)

Description [src]

Renames a resource. When the name is in use, renames to a unique name.

Renames a resource. When the proposed name is already used, GIMP generates a unique name.

Available since:3.0

Parameters

new_name const gchar*
 

The proposed new 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: gboolean
 

TRUE on success.