From cb1856baae5d23edc55865bec5beb276f515a2df Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 31 Dec 2010 12:50:25 +0100 Subject: Add icon shadow and label shadow if a wallpaper is available --- src/sbitem.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sbitem.c') diff --git a/src/sbitem.c b/src/sbitem.c index b780050..de1a274 100644 --- a/src/sbitem.c +++ b/src/sbitem.c @@ -99,6 +99,15 @@ void sbitem_free(SBItem *item) item->texture = NULL; } } + if (item->texture_shadow && CLUTTER_IS_ACTOR(item->texture_shadow)) { + clutter_actor_destroy(item->texture_shadow); + item->texture_shadow = NULL; + } + if (item->label_shadow && CLUTTER_IS_ACTOR(item->label_shadow)) { + clutter_actor_destroy(item->label_shadow); + item->label_shadow = NULL; + } + if (item->subitems) { g_list_foreach(item->subitems, (GFunc)(g_func_sbitem_free), NULL); g_list_free(item->subitems); -- cgit v1.1-32-gdbae