Old stagaed patch for managing list of proxies.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Feb 2011 23:50:06 +0000 (23:50 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Feb 2011 23:50:06 +0000 (23:50 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56762 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_proxy.c

index 3fa91a1..33d30b8 100644 (file)
@@ -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;