HomePhabricator

elm_panel: set hidden property when panel is close/open

Authored by taxi2se on Jun 8 2017, 12:00 AM.

Description

elm_panel: set hidden property when panel is close/open

Summary:

  • elm_panel has a property named hidden which stores open/close status.
  • This is updated when:
    1. bring_in animation is done(anim_stop_cb).
    2. mouse_up on panel.
    3. API is called. (elm_panel_toggle, elm_panel_hidden_set)
  • In case 3, API changes hidden, and starts bring_in animation which will call anim_stop_cb() which will update hidden again.
  • If bring_in animation is canceled (eg: sizing_eval), anim_stop_cb will be called and calculate hidden status which will not guarantee updated hidden state by APIs.

Test Plan:

  1. Call any APIs which will call elm_layout_sizing_eval(panel) right after calling elm_panel_toggle()/elm_panel_hidden_set().
  2. Delete content of panel during "toggled" cb.

Reviewers: jpeg, eunue, cedric

Subscribers: conr2d, cedric, jpeg

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>

Jean-Philippe Andre <jp.andre@samsung.com> committed rEFL9dd997f38932: elm_panel: set hidden property when panel is close/open (authored by taxi2se).Jun 8 2017, 12:15 AM