From e52a55a90762a87cbf851845ce5c33c56853c760 Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Sun, 6 Feb 2011 23:50:06 +0000 Subject: [PATCH] Old stagaed patch for managing list of proxies. SVN revision: 56762 --- legacy/evas/src/lib/canvas/evas_object_proxy.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_proxy.c b/legacy/evas/src/lib/canvas/evas_object_proxy.c index 3fa91a1c0c..33d30b8242 100644 --- a/legacy/evas/src/lib/canvas/evas_object_proxy.c +++ b/legacy/evas/src/lib/canvas/evas_object_proxy.c @@ -177,7 +177,16 @@ evas_object_proxy_new(void) static void _proxy_unset(Evas_Object *proxy) { + Evas_Object_Proxy *o; + printf("Do proxy object unset\n"); + + o = proxy->object_data; + if (!o->source) return; + + o->source->proxies = eina_list_remove(o->source->proxies, proxy); + + o->source = NULL; } @@ -191,6 +200,8 @@ _proxy_set(Evas_Object *proxy, Evas_Object *src) o->source = src; printf("Set %p\n",src); + src->proxies = eina_list_append(src->proxies, proxy); + } @@ -255,7 +266,7 @@ _proxy_render(Evas_Object *obj, void *output, void *context, { pt->x = (p->x + x) << FP; pt->y = (p->y + y) << FP; - printf("Point %d: %8d,%8d\n",p - obj->cur.map->points,pt->x,pt->y); + printf("Point %d: %8d,%8d\n",(int)(p - obj->cur.map->points),pt->x,pt->y); pt->z = (p->z) << FP; pt->x3 = p->px << FP; pt->y3 = p->py << FP; -- 2.34.1