summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:30:59 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit3d6c345dce5d561bbc3a2dfd9248e00892d6fd40 (patch)
tree58e7133589d65d6ec927d706945516f4cf223016
parent16940c5310329699e06e6a5a833916c721b72feb (diff)
elm/index: create event_rect[0] earlier in construction
Summary: this ensures that the object exists during init functions which make calls on it @fix Depends on D8996 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8997
-rw-r--r--src/lib/elementary/elm_index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index a8f35e3aa4..f9bb2b2022 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -1045,6 +1045,7 @@ _elm_index_efl_canvas_group_group_add(Eo *obj, Elm_Index_Data *priv)
1045 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 1045 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
1046 1046
1047 efl_canvas_group_add(efl_super(obj, MY_CLASS)); 1047 efl_canvas_group_add(efl_super(obj, MY_CLASS));
1048 priv->event_rect[0] = o = evas_object_rectangle_add(evas_object_evas_get(obj));
1048 1049
1049 if (!elm_layout_theme_set 1050 if (!elm_layout_theme_set
1050 (obj, "index", "base/vertical", elm_widget_style_get(obj))) 1051 (obj, "index", "base/vertical", elm_widget_style_get(obj)))
@@ -1053,7 +1054,6 @@ _elm_index_efl_canvas_group_group_add(Eo *obj, Elm_Index_Data *priv)
1053 evas_object_event_callback_add 1054 evas_object_event_callback_add
1054 (obj, EVAS_CALLBACK_RESIZE, _index_resize_cb, NULL); 1055 (obj, EVAS_CALLBACK_RESIZE, _index_resize_cb, NULL);
1055 1056
1056 priv->event_rect[0] = o = evas_object_rectangle_add(evas_object_evas_get(obj));
1057 evas_object_color_set(o, 0, 0, 0, 0); 1057 evas_object_color_set(o, 0, 0, 0, 0);
1058 elm_coords_finger_size_adjust(1, &minw, 1, &minh); 1058 elm_coords_finger_size_adjust(1, &minw, 1, &minh);
1059 evas_object_size_hint_min_set(o, minw, minh); 1059 evas_object_size_hint_min_set(o, minw, minh);