summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_device.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-06-26 22:29:46 +0100
committerTom Hacohen <tom@stosb.com>2014-06-30 17:47:06 +0100
commit7f3a44894bf336c190320ea7801d22c2436250f5 (patch)
treedbcbac9e0f867b1e15c33b64a91696ecc70ca5d4 /src/lib/evas/canvas/evas_device.c
parentaa450fa8dd330e32f0ca7c4ae6afcd802545050f (diff)
Evas canvas eolian: Fix namespace and class name for the evas canvas.
Diffstat (limited to 'src/lib/evas/canvas/evas_device.c')
-rw-r--r--src/lib/evas/canvas/evas_device.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/evas/canvas/evas_device.c b/src/lib/evas/canvas/evas_device.c
index a896bb7..b57a587 100644
--- a/src/lib/evas/canvas/evas_device.c
+++ b/src/lib/evas/canvas/evas_device.c
@@ -14,7 +14,7 @@ evas_device_add(Evas *eo_e)
14 dev->magic = MAGIC_DEV; 14 dev->magic = MAGIC_DEV;
15 dev->evas = eo_e; 15 dev->evas = eo_e;
16 dev->ref = 1; 16 dev->ref = 1;
17 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 17 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
18 e->devices = eina_list_append(e->devices, dev); 18 e->devices = eina_list_append(e->devices, dev);
19 evas_event_callback_call(eo_e, EVAS_CALLBACK_DEVICE_CHANGED, dev); 19 evas_event_callback_call(eo_e, EVAS_CALLBACK_DEVICE_CHANGED, dev);
20 return dev; 20 return dev;
@@ -54,7 +54,7 @@ evas_device_push(Evas *eo_e, Evas_Device *dev)
54 MAGIC_CHECK(dev, Evas_Device, MAGIC_DEV); 54 MAGIC_CHECK(dev, Evas_Device, MAGIC_DEV);
55 return; 55 return;
56 MAGIC_CHECK_END(); 56 MAGIC_CHECK_END();
57 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 57 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
58 if (!e->cur_device) 58 if (!e->cur_device)
59 { 59 {
60 e->cur_device = eina_array_new(4); 60 e->cur_device = eina_array_new(4);
@@ -72,7 +72,7 @@ evas_device_pop(Evas *eo_e)
72 MAGIC_CHECK(eo_e, Evas, MAGIC_EVAS); 72 MAGIC_CHECK(eo_e, Evas, MAGIC_EVAS);
73 return; 73 return;
74 MAGIC_CHECK_END(); 74 MAGIC_CHECK_END();
75 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 75 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
76 dev = eina_array_pop(e->cur_device); 76 dev = eina_array_pop(e->cur_device);
77 if (dev) _evas_device_unref(dev); 77 if (dev) _evas_device_unref(dev);
78} 78}
@@ -90,7 +90,7 @@ evas_device_list(Evas *eo_e, const Evas_Device *dev)
90 MAGIC_CHECK_END(); 90 MAGIC_CHECK_END();
91 } 91 }
92 if (dev) return dev->children; 92 if (dev) return dev->children;
93 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 93 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
94 return e->devices; 94 return e->devices;
95} 95}
96 96
@@ -138,7 +138,7 @@ evas_device_parent_set(Evas_Device *dev, Evas_Device *parent)
138 MAGIC_CHECK(dev, Evas_Device, MAGIC_DEV); 138 MAGIC_CHECK(dev, Evas_Device, MAGIC_DEV);
139 return; 139 return;
140 MAGIC_CHECK_END(); 140 MAGIC_CHECK_END();
141 Evas_Public_Data *e = eo_data_scope_get(dev->evas, EVAS_CLASS); 141 Evas_Public_Data *e = eo_data_scope_get(dev->evas, EVAS_CANVAS_CLASS);
142 if (parent) 142 if (parent)
143 { 143 {
144 MAGIC_CHECK(parent, Evas_Device, MAGIC_DEV); 144 MAGIC_CHECK(parent, Evas_Device, MAGIC_DEV);
@@ -239,7 +239,7 @@ _evas_device_cleanup(Evas *eo_e)
239{ 239{
240 Evas_Device *dev; 240 Evas_Device *dev;
241 241
242 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 242 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
243 if (e->cur_device) 243 if (e->cur_device)
244 { 244 {
245 while ((dev = eina_array_pop(e->cur_device))) 245 while ((dev = eina_array_pop(e->cur_device)))
@@ -258,7 +258,7 @@ _evas_device_top_get(const Evas *eo_e)
258{ 258{
259 int num; 259 int num;
260 260
261 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); 261 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
262 if (!e->cur_device) return NULL; 262 if (!e->cur_device) return NULL;
263 num = eina_array_count(e->cur_device); 263 num = eina_array_count(e->cur_device);
264 if (num < 1) return NULL; 264 if (num < 1) return NULL;