From: Hyunjee Kim Date: Fri, 7 Mar 2014 00:59:19 +0000 (+0900) Subject: Implement hardware key event #2 X-Git-Tag: submit/tizen/20150702.105206~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2ee1db5b4ad76cbbb72e6f6c9e948f91fa88385;p=apps%2Fnative%2Fug-wifi-efl.git Implement hardware key event #2 Change-Id: I8a1415e1ddf9f98cbdafa90e2f3686e762f90743 Signed-off-by: Hyunjee Kim --- diff --git a/packaging/wifi-efl-ug.spec b/packaging/wifi-efl-ug.spec index 3a520a3..5e705f8 100644 --- a/packaging/wifi-efl-ug.spec +++ b/packaging/wifi-efl-ug.spec @@ -1,6 +1,6 @@ Name: wifi-efl-ug Summary: Wi-Fi UI Gadget -Version: 0.5.2_26 +Version: 0.5.2_27 Release: 1 Group: App/Network License: Flora License diff --git a/sources/libraries/Common/common_utils.c b/sources/libraries/Common/common_utils.c index fe01917..6a81ae0 100644 --- a/sources/libraries/Common/common_utils.c +++ b/sources/libraries/Common/common_utils.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "common.h" #include "common_utils.h" @@ -326,6 +327,9 @@ Evas_Object *common_utils_show_info_popup(Evas_Object *parent, popup_btn_info_t { __COMMON_FUNC_ENTER__; Evas_Object *popup = elm_popup_add(parent); + + ea_object_event_callback_add(popup, EA_CALLBACK_BACK, ea_popup_back_cb, NULL); + evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); if (popup_data->title_txt) elm_object_part_text_set(popup, "title,text", popup_data->title_txt); @@ -353,6 +357,8 @@ Evas_Object *common_utils_show_info_popup(Evas_Object *parent, popup_btn_info_t evas_object_smart_callback_add(btn_2, "clicked", __common_utils_del_popup, popup); } } + + elm_object_focus_set(popup, EINA_TRUE); evas_object_show(popup); return popup;