get_drawable_preview


Description:

[ CCode ( cname = "gimp_procedure_dialog_get_drawable_preview" ) ]
public unowned Widget get_drawable_preview (string preview_id, Drawable drawable)

Gets or creates a new DrawablePreview for drawable.

If a widget with the preview_id has already been created for this procedure, it will be returned instead.

The preview_id ID can later be used together with property names to be packed in other containers or inside this itself.

Parameters:

this

the ProcedureDialog.

preview_id

the ID of DrawablePreview.

drawable

the Drawable.

Returns:

the Widget representing preview_id. The object belongs to this and must not be freed.