summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjee Kim <hj0426.kim@samsung.com>2016-04-14 17:20:53 +0900
committerHyunjee Kim <hj0426.kim@samsung.com>2016-04-14 17:21:05 +0900
commit9645e3c8eec9851425f1dcb765d0e48da87c5781 (patch)
tree7386d451d375d65abcbf5d35a4791f412c563bb8
parent35f1caf3d6aaeca6d130a1fd134e1d628d3123d0 (diff)
downloadsettings-9645e3c8eec9851425f1dcb765d0e48da87c5781.tar.gz
settings-9645e3c8eec9851425f1dcb765d0e48da87c5781.tar.bz2
settings-9645e3c8eec9851425f1dcb765d0e48da87c5781.zip
Change-Id: I24f7e7eed0990f7b84434b850a368325406356b9 Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-rw-r--r--src/setting-main.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/setting-main.c b/src/setting-main.c
index 7582ca0..ff37df3 100644
--- a/src/setting-main.c
+++ b/src/setting-main.c
@@ -366,6 +366,23 @@ Evas_Object *setting_main_layout_conform_create(Evas_Object *win_layout, Evas_Ob
}
/**
+ ** @brief Do process when clicking '<-' button
+ **
+ ** @param data application context
+ ** @param obj evas object
+ ** @param event_info event type
+ **/
+static Eina_Bool
+setting_main_click_softkey_back_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ SETTING_TRACE_BEGIN;
+
+ /* Send destroy request */
+ ui_app_exit();
+
+ return EINA_FALSE;
+}
+/**
* @brief create all view layout
*
* win_main
@@ -404,7 +421,12 @@ static int setting_main_create(void *cb)
ad->view_layout = view_layout;
/* push a view to the naviframe */
- Elm_Object_Item *navi_it = elm_naviframe_item_push(ad->navibar_main, "IDS_ST_OPT_SETTINGS", NULL, NULL, view_layout, NULL);
+ Evas_Object *lbtn = NULL;
+ lbtn = elm_button_add(ad->navibar_main);
+ elm_object_style_set(lbtn, "naviframe/end_btn/default");
+ evas_object_smart_callback_add(lbtn, "clicked", setting_main_click_softkey_back_cb, NULL);
+ Elm_Object_Item *navi_it = elm_naviframe_item_push(ad->navibar_main, "IDS_ST_OPT_SETTINGS", lbtn, NULL, view_layout, NULL);
+
elm_naviframe_item_title_enabled_set(navi_it, EINA_TRUE, EINA_TRUE);
ad->navibar_main_it = navi_it;
elm_object_item_domain_text_translatable_set(navi_it, SETTING_PACKAGE, EINA_TRUE);