mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
emblemedicon: add g_emblemed_icon_clear_emblems()
https://bugzilla.gnome.org/show_bug.cgi?id=637171
This commit is contained in:
parent
056a5d753d
commit
f53d518a3d
@ -160,6 +160,18 @@ g_emblemed_icon_get_emblems (GEmblemedIcon *emblemed)
|
||||
return emblemed->emblems;
|
||||
}
|
||||
|
||||
void
|
||||
g_emblemed_icon_clear_emblems (GEmblemedIcon *emblemed)
|
||||
{
|
||||
g_return_if_fail (G_IS_EMBLEMED_ICON (emblemed));
|
||||
|
||||
if (emblemed->emblems == NULL)
|
||||
return;
|
||||
|
||||
g_list_free_full (emblemed->emblems, g_object_unref);
|
||||
emblemed->emblems = NULL;
|
||||
}
|
||||
|
||||
static gint
|
||||
g_emblem_comp (GEmblem *a,
|
||||
GEmblem *b)
|
||||
|
@ -56,6 +56,7 @@ GIcon *g_emblemed_icon_get_icon (GEmblemedIcon *emblemed);
|
||||
GList *g_emblemed_icon_get_emblems (GEmblemedIcon *emblemed);
|
||||
void g_emblemed_icon_add_emblem (GEmblemedIcon *emblemed,
|
||||
GEmblem *emblem);
|
||||
void g_emblemed_icon_clear_emblems (GEmblemedIcon *emblemed);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user