Commit f53d518a authored by Cosimo Cecchi's avatar Cosimo Cecchi

emblemedicon: add g_emblemed_icon_clear_emblems()
parent 056a5d75
......@@ -160,6 +160,18 @@ g_emblemed_icon_get_emblems (GEmblemedIcon *emblemed)
return emblemed->emblems;
g_emblemed_icon_clear_emblems (GEmblemedIcon *emblemed)
g_return_if_fail (G_IS_EMBLEMED_ICON (emblemed));
if (emblemed->emblems == NULL)
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment