Gio.Emblem.new_with_origin
Description: Reference for Gio.Emblem.new_with_origin

### Constructor

# Gio Emblemnew_with_origin

since: 2.18

#### Declaration [src]

    GEmblem*
    g_emblem_new_with_origin (
      GIcon* icon,
      GEmblemOrigin origin
    )

#### Description [src]

Creates a new emblem for `icon`.

Available since: 2.18

#### Parameters

`icon`

  Type: `GIcon`

  A GIcon containing the icon.

  The data is owned by the caller of the function.

`origin`

  Type: `GEmblemOrigin`

  A GEmblemOrigin enum defining the emblem’s origin.

#### Return value

Type: `GEmblem`

A new `GEmblem`.

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