popup: hides the popup when hide effect is finished
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 9 Mar 2017 07:36:20 +0000 (16:36 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 9 Mar 2017 08:39:39 +0000 (17:39 +0900)
Summary:
When popup hides and shows fast, sometimes popup is not shown
because of the difference visible value between popup and notify
(case: popup visible state: 1, popup_notify visible state: 0)
To sync this value I added the visible set code in elc_popup.c

@fix

Test Plan:
1. run elementary_text -to popup
2. shows the hide popup
3. hides popup using the hide button
4. repeat 2,3 step
5. popup will be shown well

Reviewers: jpeg, cedric, Hermet, raster

Subscribers: Blackmole, woohyun

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

src/lib/elementary/elc_popup.c

index 2e49ceb..7fa35ad 100644 (file)
@@ -119,6 +119,7 @@ static void
 _hide_effect_finished_cb(void *data, const Efl_Event *event EINA_UNUSED)
 {
    efl_event_callback_legacy_call(data, ELM_POPUP_EVENT_DISMISSED, NULL);
+   efl_gfx_visible_set(data, EINA_FALSE);
 }