1.30 <GEmblemedIcon>

Class: <GEmblemedIcon>

It derives from <GObject>.

<GEmblemedIcon> is an implementation of <GIcon> that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via emblemed-icon:add-emblem.

Note that <GEmblemedIcon> allows no control over the position of the emblems. See also <GEmblem> for more information.

Fields

parent-instance

Properties

Property: emblemed-icon:gicon self

The <GIcon> to attach emblems to.

Its value is a <GIcon>, or #f.

It can only be set when the object is made, with #:gicon.

Procedures

Method: emblemed-icon:add-emblem self emblem
Method: add-emblem self emblem

Adds emblem to the GList of GEmblems.

self

Passed: a <GEmblemedIcon>.

a <GEmblemedIcon>

emblem

Passed: a <GEmblem>.

a <GEmblem>

Method: emblemed-icon:clear-emblems self
Method: clear-emblems self

Removes all the emblems from icon.

self

Passed: a <GEmblemedIcon>.

a <GEmblemedIcon>

Method: emblemed-icon:get-emblems self ⇒ %return
Method: get-emblems self ⇒ %return

Gets the list of emblems for the icon.

self

Passed: a <GEmblemedIcon>.

a <GEmblemedIcon>

%return

Returned: a list, each a <GEmblem>.

a GList of GEmblems that is owned by self

Method: emblemed-icon:get-icon self ⇒ %return
Method: get-icon self ⇒ %return

Gets the main icon for self.

self

Passed: a <GEmblemedIcon>.

a <GEmblemedIcon>

%return

Returned: a <GIcon>.

a <GIcon> that is owned by self

Procedure: emblemed-icon:new icon [emblem] ⇒ %return

Creates a new emblemed icon for icon with the emblem emblem.

icon

Passed: a <GIcon>.

a <GIcon>

emblem

Passed, or left out: a <GEmblem>, or #f.

a <GEmblem>, or #f

%return

Returned: a <GEmblemedIcon>.

a new <GIcon>