GimpUi.DrawablePreview.new_from_drawable
Description: Reference for GimpUi.DrawablePreview.new_from_drawable

### Constructor

# GimpUi DrawablePreviewnew_from_drawable

since: 2.10

#### Declaration [src]

    GtkWidget*
    gimp_drawable_preview_new_from_drawable (
      GimpDrawable* drawable
    )

#### Description [src]

Creates a new `GimpDrawablePreview` widget for `drawable`.

Available since: 2.10

#### Parameters

`drawable`

  Type: `GimpDrawable`

  A drawable.

  The data is owned by the caller of the function.

#### Return value

Type: `GtkWidget`

A pointer to the new `GimpDrawablePreview` widget.

The data is owned by the called function.