summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_data.c')
-rw-r--r--src/lib/evas/canvas/evas_data.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_data.c b/src/lib/evas/canvas/evas_data.c
index 38bc537..e991e06 100644
--- a/src/lib/evas/canvas/evas_data.c
+++ b/src/lib/evas/canvas/evas_data.c
@@ -8,7 +8,7 @@ evas_object_data_set(Evas_Object *obj, const char *key, const void *data)
8 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); 8 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
9 return; 9 return;
10 MAGIC_CHECK_END(); 10 MAGIC_CHECK_END();
11 eo_do(obj, eo_key_data_set(key, data)); 11 eo_key_data_set(obj, key, data);
12} 12}
13 13
14EAPI void * 14EAPI void *
@@ -18,7 +18,7 @@ evas_object_data_get(const Evas_Object *obj, const char *key)
18 return NULL; 18 return NULL;
19 MAGIC_CHECK_END(); 19 MAGIC_CHECK_END();
20 void *data = NULL; 20 void *data = NULL;
21 eo_do((Evas_Object *)obj, data = eo_key_data_get(key)); 21 data = eo_key_data_get((Evas_Object *)obj, key);
22 return data; 22 return data;
23} 23}
24 24
@@ -29,6 +29,7 @@ evas_object_data_del(Evas_Object *obj, const char *key)
29 return NULL; 29 return NULL;
30 MAGIC_CHECK_END(); 30 MAGIC_CHECK_END();
31 void *data = NULL; 31 void *data = NULL;
32 eo_do(obj, data = eo_key_data_get(key), eo_key_data_del(key)); 32 data = eo_key_data_get(obj, key);
33 eo_key_data_del(obj, key);
33 return data; 34 return data;
34} 35}