get_color_widget


Description:

[ CCode ( cname = "gimp_procedure_dialog_get_color_widget" ) ]
public unowned Widget get_color_widget (string property, bool editable, ColorAreaType type)

Creates a new widget for property which must necessarily be a Color property.

This must be used instead of get_widget when you want a LabelColor which is not customizable for a color property, or when to set a specific type.

If a widget has already been created for this procedure, it will be returned instead (whatever its actual widget type).

Parameters:

this

the associated ProcedureDialog.

property

name of the Color property to build a widget for. It must be a property of the Procedure this has been created for.

editable

whether the color can be edited or is only for display.

type

the ColorAreaType.

Returns:

a LabelColor representing property. The object belongs to this and must not be freed.