summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/edje/src/lib/edje_util.c')
-rw-r--r--legacy/edje/src/lib/edje_util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/legacy/edje/src/lib/edje_util.c b/legacy/edje/src/lib/edje_util.c
index e45fc8d..042b851 100644
--- a/legacy/edje/src/lib/edje_util.c
+++ b/legacy/edje/src/lib/edje_util.c
@@ -1054,10 +1054,9 @@ _edje_color_class_member_del(Edje *ed, char *color_class)
1054} 1054}
1055 1055
1056void 1056void
1057_edje_color_class_on_del(Edje *ed, Edje_Real_Part *rp) 1057_edje_color_class_on_del(Edje *ed, Edje_Part *ep)
1058{ 1058{
1059 Evas_List *tmp; 1059 Evas_List *tmp;
1060 Edje_Part *ep = rp->part;
1061 1060
1062 if ((ep->default_desc) && (ep->default_desc->color_class)) _edje_color_class_member_del(ed, ep->default_desc->color_class); 1061 if ((ep->default_desc) && (ep->default_desc->color_class)) _edje_color_class_member_del(ed, ep->default_desc->color_class);
1063 for (tmp = ep->other_desc; tmp; tmp = tmp->next) 1062 for (tmp = ep->other_desc; tmp; tmp = tmp->next)
@@ -1065,7 +1064,11 @@ _edje_color_class_on_del(Edje *ed, Edje_Real_Part *rp)
1065 Edje_Part_Description *desc; 1064 Edje_Part_Description *desc;
1066 1065
1067 desc = tmp->data; 1066 desc = tmp->data;
1068 if (desc->color_class) _edje_color_class_member_del(ed, desc->color_class); 1067 if (desc->color_class)
1068 {
1069 _edje_color_class_member_del(ed, desc->color_class);
1070 desc->color_class = NULL;
1071 }
1069 } 1072 }
1070} 1073}
1071 1074