Gio.Emblem.new_with_origin

function new_with_origin(icon: Gio.Icon, origin: Gio.EmblemOrigin): Gio.Emblem {
    // Gjs wrapper for g_emblem_new_with_origin()
}
  

Creates a new emblem for icon.

Since 2.18

icon

a GIcon containing the icon.

origin

a GEmblemOrigin enum defining the emblem's origin

Returns

a new Gio.Emblem.