aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_object_polygon.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-08-31 02:04:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-08-31 02:04:31 +0000
commitd73b8c5d7be84bac28d007356b97a347a5a28a1c (patch)
tree57033f78458da00bfa36cd4fd7bc5fc9c2b3d4b1 /legacy/evas/src/lib/canvas/evas_object_polygon.c
parentadd RTLD_NODELETE (diff)
downloadefl-d73b8c5d7be84bac28d007356b97a347a5a28a1c.tar.gz
updated patches from jose!
SVN revision: 35756
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_object_polygon.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_polygon.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_polygon.c b/legacy/evas/src/lib/canvas/evas_object_polygon.c
index 35ac120960..b0e3d30331 100644
--- a/legacy/evas/src/lib/canvas/evas_object_polygon.c
+++ b/legacy/evas/src/lib/canvas/evas_object_polygon.c
@@ -31,7 +31,8 @@ static void evas_object_polygon_free(Evas_Object *obj);
static void evas_object_polygon_render_pre(Evas_Object *obj);
static void evas_object_polygon_render_post(Evas_Object *obj);
-static int evas_object_polygon_visual_type_get(Evas_Object *obj);
+static unsigned int evas_object_polygon_id_get(Evas_Object *obj);
+static unsigned int evas_object_polygon_visual_id_get(Evas_Object *obj);
static void *evas_object_polygon_engine_data_get(Evas_Object *obj);
static int evas_object_polygon_is_opaque(Evas_Object *obj);
@@ -46,7 +47,8 @@ static const Evas_Object_Func object_func =
evas_object_polygon_render,
evas_object_polygon_render_pre,
evas_object_polygon_render_post,
- evas_object_polygon_visual_type_get,
+ evas_object_polygon_id_get,
+ evas_object_polygon_visual_id_get,
evas_object_polygon_engine_data_get,
/* these are optional. NULL = nothing */
NULL,
@@ -414,7 +416,16 @@ evas_object_polygon_render_post(Evas_Object *obj)
o->changed = 0;
}
-static int evas_object_polygon_visual_type_get(Evas_Object *obj)
+static unsigned int evas_object_polygon_id_get(Evas_Object *obj)
+{
+ Evas_Object_Polygon *o;
+
+ o = (Evas_Object_Polygon *)(obj->object_data);
+ if (!o) return 0;
+ return MAGIC_OBJ_POLYGON;
+}
+
+static unsigned int evas_object_polygon_visual_id_get(Evas_Object *obj)
{
Evas_Object_Polygon *o;