path: root/src/lib/evas/canvas/evas_main.c
diff options
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-21 15:45:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-21 16:13:04 +0900
commit269fc4f7a643358ac943b5454bafc14b5d14836c (patch)
treef9de7a7420359da4b589d5ec3e72d9706225efa9 /src/lib/evas/canvas/evas_main.c
parentedje: Fix compilation of svg example (add -beta) (diff)
evas: Remove common interface and use provider_find
Evas.Common_Interface not only had a bad name, it also wasn't in line with how we can get a loop object, for instance. Use eo_provider_find in each implementing class.
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 3e967044bf..f2c9b444b7 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -586,10 +586,13 @@ evas_data_argb_unpremul(unsigned int *data, unsigned int len)
evas_common_convert_argb_unpremul(data, len);
-EOLIAN static Evas *
-_evas_canvas_evas_common_interface_evas_get(Eo *eo_e, Evas_Public_Data *e EINA_UNUSED)
+EOLIAN static Eo *
+_evas_canvas_eo_base_provider_find(Eo *eo_e, Evas_Public_Data *e EINA_UNUSED,
+ const Eo_Class *klass)
- return (Evas *)eo_e;
+ if (klass == EVAS_CANVAS_CLASS)
+ return eo_e;
+ return eo_provider_find(eo_super(eo_e, MY_CLASS), klass);
Ector_Surface *