git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@45672
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
edje_edit_part_clip_to_set(Evas_Object *obj, const char *part, const char *clip_to)
{
Edje_Real_Part *clip;
+ Evas_Object *o, *oo;
GET_RP_OR_RETURN(0);
//printf("Set clip_to for part: %s [to: %s]\n", part, clip_to);
clip = _edje_real_part_get(ed, clip_to);
if (!clip || !clip->part) return 0;
+ o = clip->object;
+ while ((oo = evas_object_clip_get(o)))
+ {
+ if (o == rp->object)
+ return 0;
+ o = oo;
+ }
+
rp->part->clip_to_id = clip->part->id;
rp->clip_to = clip;