summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_route.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 14:00:43 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 14:50:31 +0900
commitd39bbc149113da5d842f30d046dc04302e54275b (patch)
treebf4fb87d6af59bfd2720a15293362a64ad7f3815 /src/lib/elementary/elm_route.c
parent6cea4993e0ea7425a1dde2b38bcdb63687a7eaad (diff)
elm: Create legacy widgets with elm_legacy_add
This will be used to solve issues around style_set: if the widget is legacy or pure eo we may need to select a different style. So in the constructor we need to know whether we are legacy or eo. Note that calling style_set in finalize only is too late as we would lose information such as efl_text_set() called inside efl_add().
Diffstat (limited to 'src/lib/elementary/elm_route.c')
-rw-r--r--src/lib/elementary/elm_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_route.c b/src/lib/elementary/elm_route.c
index 4a03775..ba4f64e 100644
--- a/src/lib/elementary/elm_route.c
+++ b/src/lib/elementary/elm_route.c
@@ -178,7 +178,7 @@ EAPI Evas_Object *
178elm_route_add(Evas_Object *parent) 178elm_route_add(Evas_Object *parent)
179{ 179{
180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
181 return efl_add(MY_CLASS, parent, efl_canvas_object_legacy_ctor(efl_added)); 181 return elm_legacy_add(MY_CLASS, parent);
182} 182}
183 183
184EOLIAN static Eo * 184EOLIAN static Eo *