summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/edje/edje_smart.c')
-rw-r--r--src/lib/edje/edje_smart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 29d042c..9e405ce 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -4,6 +4,8 @@
4 4
5#include "edje_private.h" 5#include "edje_private.h"
6 6
7#include "canvas/evas_canvas.eo.h"
8
7#ifdef MY_CLASS 9#ifdef MY_CLASS
8# undef MY_CLASS 10# undef MY_CLASS
9#endif 11#endif
@@ -20,7 +22,7 @@ Eina_Inlist *_edje_edjes = NULL;
20EAPI Evas_Object * 22EAPI Evas_Object *
21edje_object_add(Evas *evas) 23edje_object_add(Evas *evas)
22{ 24{
23 EINA_SAFETY_ON_NULL_RETURN_VAL(evas, NULL); 25 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(evas, EVAS_CANVAS_CLASS), NULL);
24 return efl_add(MY_CLASS, evas_find(evas), efl_canvas_object_legacy_ctor(efl_added)); 26 return efl_add(MY_CLASS, evas_find(evas), efl_canvas_object_legacy_ctor(efl_added));
25} 27}
26 28