elm_conformant: fix migration side effect 97/191897/2
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 25 Oct 2018 05:48:01 +0000 (14:48 +0900)
committerYeongJong Lee <yj34.lee@samsung.com>
Thu, 25 Oct 2018 06:43:36 +0000 (06:43 +0000)
Some apps can't show indicator regardless of indicator mode.
This patch fixes that bug.

test case:
1)
win = elm_win_add();
elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW);
elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_OPAQUE);
conf = elm_conformant_add(win);
2)
win = elm_win_add();
conf = elm_conformant_add(win);
elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW);
elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_OPAQUE);

Change-Id: Ieb83b089fa9d809ac66cbab87830a6c5031cc2b1

src/lib/elementary/elm_conform.c

index 89579a1..33784b1 100644 (file)
@@ -1694,8 +1694,8 @@ _elm_conformant_efl_object_constructor(Eo *obj, Elm_Conformant_Data *sd)
    Efl_Event event = {};
    sd->win = elm_widget_top_get(obj);
    event.object = sd->win;
-//   _on_indicator_mode_changed(obj, sd->win, NULL, NULL);
-//   _on_rotation_changed(obj, sd->win, NULL, NULL);
+   _on_indicator_mode_changed(obj, &event);
+   _on_rotation_changed(obj, &event);
 
    sd->indmode = elm_win_indicator_mode_get(sd->win);
    sd->ind_o_mode = elm_win_indicator_opacity_get(sd->win);