summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.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_dayselector.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_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index ebd038f..68b8dd8 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -447,7 +447,7 @@ EAPI Evas_Object *
447elm_dayselector_add(Evas_Object *parent) 447elm_dayselector_add(Evas_Object *parent)
448{ 448{
449 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 449 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
450 return efl_add(MY_CLASS, parent, efl_canvas_object_legacy_ctor(efl_added)); 450 return elm_legacy_add(MY_CLASS, parent);
451} 451}
452 452
453EOLIAN static Eo * 453EOLIAN static Eo *