okra pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/gadgets/wireless.git/commit/?id=9c8a801229a89d64885b1441885d220f268c8500

commit 9c8a801229a89d64885b1441885d220f268c8500
Author: Stephen Houston <stephen@localhost.localdomain>
Date:   Mon Feb 12 16:01:44 2018 -0600

    Properly destroy the popup on EVAS_CALLBACK_HIDE.
---
 src/wireless.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/wireless.c b/src/wireless.c
index b6e6cab..e54d635 100644
--- a/src/wireless.c
+++ b/src/wireless.c
@@ -973,7 +973,7 @@ _wireless_gadget_edit_select_services(void *data 
EINA_UNUSED, Evas_Object *obj E
 }
 
 static void
-_popup_focus_out(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object 
*obj, void *event_data EINA_UNUSED)
+_popup_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void 
*event_data EINA_UNUSED)
 {
    evas_object_del(obj);
 }
@@ -1064,7 +1064,7 @@ _wireless_gadget_edit(int type)
      elm_win_alpha_set(popup, 1);
    else
      elm_win_autodel_set(popup, 1);
-   evas_object_event_callback_add(popup, EVAS_CALLBACK_FOCUS_OUT, 
_popup_focus_out, NULL);
+   evas_object_event_callback_add(popup, EVAS_CALLBACK_HIDE, _popup_del, NULL);
 
    box = elm_box_add(popup);
    evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, 0);
@@ -1757,7 +1757,7 @@ wireless_authenticate(const Eina_Array *fields, 
Wireless_Auth_Cb cb, void *data)
      elm_win_autodel_set(popup, 1);
    evas_object_event_callback_add(popup, EVAS_CALLBACK_KEY_DOWN, 
_wireless_auth_key, p);
    evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL, 
_wireless_auth_del, p);
-   evas_object_event_callback_add(popup, EVAS_CALLBACK_FOCUS_OUT, 
_popup_focus_out, NULL);
+   evas_object_event_callback_add(popup, EVAS_CALLBACK_HIDE, _popup_del, NULL);
    p->popup = popup;
 
    tb = elm_table_add(popup);

-- 


Reply via email to