summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.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/elc_ctxpopup.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/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index c392d8f..bbe9132 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1110,7 +1110,7 @@ EAPI Evas_Object *
1110elm_ctxpopup_add(Evas_Object *parent) 1110elm_ctxpopup_add(Evas_Object *parent)
1111{ 1111{
1112 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1112 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1113 Evas_Object *obj = efl_add(MY_CLASS, parent, efl_canvas_object_legacy_ctor(efl_added)); 1113 Evas_Object *obj = elm_legacy_add(MY_CLASS, parent);
1114 1114
1115 /* access: parent could be any object such as elm_list which does 1115 /* access: parent could be any object such as elm_list which does
1116 not know elc_ctxpopup as its child object in the focus_next(); */ 1116 not know elc_ctxpopup as its child object in the focus_next(); */