summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2018-02-12 16:01:44 -0600
committerStephen Houston <stephen@localhost.localdomain>2018-02-12 16:01:44 -0600
commit9c8a801229a89d64885b1441885d220f268c8500 (patch)
tree7dbffbeeffdc2877897167b4e7a4b242edb91ca7
parent65714dc0bb45a78d8b0d3fb10b8e4120bcec90c1 (diff)
Properly destroy the popup on EVAS_CALLBACK_HIDE.
-rw-r--r--src/wireless.c6
1 files 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
973} 973}
974 974
975static void 975static void
976_popup_focus_out(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_data EINA_UNUSED) 976_popup_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_data EINA_UNUSED)
977{ 977{
978 evas_object_del(obj); 978 evas_object_del(obj);
979} 979}
@@ -1064,7 +1064,7 @@ _wireless_gadget_edit(int type)
1064 elm_win_alpha_set(popup, 1); 1064 elm_win_alpha_set(popup, 1);
1065 else 1065 else
1066 elm_win_autodel_set(popup, 1); 1066 elm_win_autodel_set(popup, 1);
1067 evas_object_event_callback_add(popup, EVAS_CALLBACK_FOCUS_OUT, _popup_focus_out, NULL); 1067 evas_object_event_callback_add(popup, EVAS_CALLBACK_HIDE, _popup_del, NULL);
1068 1068
1069 box = elm_box_add(popup); 1069 box = elm_box_add(popup);
1070 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, 0); 1070 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)
1757 elm_win_autodel_set(popup, 1); 1757 elm_win_autodel_set(popup, 1);
1758 evas_object_event_callback_add(popup, EVAS_CALLBACK_KEY_DOWN, _wireless_auth_key, p); 1758 evas_object_event_callback_add(popup, EVAS_CALLBACK_KEY_DOWN, _wireless_auth_key, p);
1759 evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL, _wireless_auth_del, p); 1759 evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL, _wireless_auth_del, p);
1760 evas_object_event_callback_add(popup, EVAS_CALLBACK_FOCUS_OUT, _popup_focus_out, NULL); 1760 evas_object_event_callback_add(popup, EVAS_CALLBACK_HIDE, _popup_del, NULL);
1761 p->popup = popup; 1761 p->popup = popup;
1762 1762
1763 tb = elm_table_add(popup); 1763 tb = elm_table_add(popup);