Top |
GObject * | icon | Read / Write / Construct Only |
GEmblemOrigin | origin | Read / Write / Construct Only |
GEmblem is an implementation of GIcon that supports having an emblem, which is an icon with additional properties. It can than be added to a GEmblemedIcon.
Currently, only metainformation about the emblem's origin is supported. More may be added in the future.
GEmblem * g_emblem_new_with_origin (GIcon *icon
,GEmblemOrigin origin
);
Creates a new emblem for icon
.
icon |
a GIcon containing the icon. |
|
origin |
a GEmblemOrigin enum defining the emblem's origin |
Since: 2.18
GIcon *
g_emblem_get_icon (GEmblem *emblem
);
Gives back the icon from emblem
.
a GIcon. The returned object belongs to the emblem and should not be modified or freed.
[transfer none]
Since: 2.18
GEmblemOrigin
g_emblem_get_origin (GEmblem *emblem
);
Gets the origin of the emblem.
Since: 2.18
“icon”
property“icon” GObject *
The actual icon of the emblem.
Flags: Read / Write / Construct Only
“origin”
property“origin” GEmblemOrigin
Tells which origin the emblem is derived from.
Flags: Read / Write / Construct Only
Default value: G_EMBLEM_ORIGIN_UNKNOWN