elm/code: use evas as parent for evas object creation

Summary:
evas object types require an evas as the parent. this has always been
the case, though it has only begun to (again) be treated as an error
recently

fixes unit test failures

Subscribers: cedric, #reviewers, #committers

Tags: #efl_widgets_code

Differential Revision: https://phab.enlightenment.org/D6852
This commit is contained in:
Mike Blumenkrantz 2018-08-16 20:00:41 +01:00 committed by Alastair Poole
parent 588830280f
commit db377832f7
1 changed files with 2 additions and 2 deletions

View File

@ -1975,7 +1975,7 @@ _elm_code_widget_ensure_n_grid_rows(Elm_Code_Widget *widget, int rows)
for (i = existing; i < rows; i++)
{
grid = evas_object_textgrid_add(pd->gridbox);
grid = evas_object_textgrid_add(evas_object_evas_get(pd->gridbox));
evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, 0.0);
evas_object_show(grid);
@ -2383,7 +2383,7 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd)
evas_object_event_callback_add(scroller, EVAS_CALLBACK_MOUSE_DOWN,
_elm_code_widget_scroller_clicked_cb, obj);
background = evas_object_rectangle_add(scroller);
background = evas_object_rectangle_add(evas_object_evas_get(scroller));
evas_object_size_hint_weight_set(background, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(background, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(background);