summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_grid.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2018-08-29 21:11:00 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-29 21:11:00 +0900
commite19292aa2b0a8098f3e6f5c63ba86e80f99df90b (patch)
tree0f39c9d713da0729869d4750ccd2478c5b724681 /src/lib/evas/canvas/evas_object_grid.c
parent37f1a46c4a23a19e8aeece005b506dd0727f6196 (diff)
evas: call evas_find before safety check
Summary: edje_edit_object_add edje_object_add emotion_object_add evas_object_xxx_add These APIs had allowed to set parent to EFL_CANVAS_OBJECT(Evas_Object) before 8bb11a17. we should call evas_find before safety check for backward compatibility. Test Plan: win = elm_win_add(NULL, "main", ELM_WIN_BASIC); 1. `rect = evas_object_rectangle_add(evas_object_evas_get(win));` 2. `rect = evas_object_rectangle_add(win);` Check that 1. and 2. works. Reviewers: Hermet, zmike Reviewed By: Hermet Subscribers: cedric, #reviewers, CHAN, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6909
Diffstat (limited to 'src/lib/evas/canvas/evas_object_grid.c')
-rw-r--r--src/lib/evas/canvas/evas_object_grid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_grid.c b/src/lib/evas/canvas/evas_object_grid.c
index 2ff2619..75c50b9 100644
--- a/src/lib/evas/canvas/evas_object_grid.c
+++ b/src/lib/evas/canvas/evas_object_grid.c
@@ -273,8 +273,9 @@ _evas_object_grid_smart_set_user(Evas_Smart_Class *sc)
273EAPI Evas_Object * 273EAPI Evas_Object *
274evas_object_grid_add(Evas *evas) 274evas_object_grid_add(Evas *evas)
275{ 275{
276 evas = evas_find(evas);
276 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(evas, EVAS_CANVAS_CLASS), NULL); 277 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(evas, EVAS_CANVAS_CLASS), NULL);
277 return efl_add(MY_CLASS, evas_find(evas), efl_canvas_object_legacy_ctor(efl_added)); 278 return efl_add(MY_CLASS, evas, efl_canvas_object_legacy_ctor(efl_added));
278} 279}
279 280
280EOLIAN static Eo * 281EOLIAN static Eo *