elementary: fix unintentional visibility of elm_hover in combobox constructor
authorYeongjong Lee <cleanlyj@naver.com>
Fri, 6 Oct 2017 16:46:21 +0000 (09:46 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Oct 2017 16:46:24 +0000 (09:46 -0700)
Summary:
since fd9cf1d3b628f70d66ec85a4f2433c675d9ad243, All Eo canvas objects remain
visible by default.
but elm_hover doesn't want to be shown in combobox constructor.
showing elm_hover in constructor occurs unexpected behavior.
this fixes that bug.

Test Plan:
1. elementary_test - Combobox
2. Click the combobox to Expand the list.

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5267

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elc_combobox.c

index e11feb2..9372ffe 100644 (file)
@@ -358,7 +358,8 @@ _elm_combobox_efl_object_constructor(Eo *obj, Elm_Combobox_Data *sd)
 
    //hover
    sd->hover = efl_add(ELM_HOVER_CLASS, sd->hover_parent,
-                       elm_obj_widget_style_set(efl_added, buf));
+                       elm_obj_widget_style_set(efl_added, buf),
+                       efl_canvas_object_legacy_ctor(efl_added));
    evas_object_layer_set(sd->hover, EVAS_LAYER_MAX);
    efl_ui_mirrored_automatic_set(sd->hover, EINA_FALSE);
    elm_hover_target_set(sd->hover, obj);