aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-16 20:00:41 +0100
committerAlastair Poole <netstar@gmail.com>2018-08-16 20:00:41 +0100
commitdb377832f7f8d34e5675b54b6f89d657bfcd4ec4 (patch)
treebfedca6b8a3752673cf1076663bc2b7e3da710f5
parenttests/edje: fix object parenting for swallow tests (diff)
downloadefl-db377832f7f8d34e5675b54b6f89d657bfcd4ec4.tar.gz
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
-rw-r--r--src/lib/elementary/elm_code_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index f78a78daa8..600a9b786c 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -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);