From 02039487cfb73b9643a35d7c687146929aa52172 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 17 Dec 2020 11:25:57 +0900 Subject: [PATCH] Add margin in language option view of common profile Change-Id: I3148f953e6e49d714c407c4a251a29c4d50b9a46 Signed-off-by: Jihoon Kim --- src/option.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/option.cpp b/src/option.cpp index 43ecd80..2d51b89 100644 --- a/src/option.cpp +++ b/src/option.cpp @@ -1306,6 +1306,11 @@ static Evas_Object* create_option_language_view(Evas_Object *naviframe) Evas_Object *genlist = create_genlist(naviframe); #ifdef _COMMON evas_object_smart_callback_add(genlist, "realized", _gl_realized_cb, NULL); + + Evas_Object *layout = elm_layout_add(naviframe); + elm_layout_file_set(layout, OPTION_LAYOUT_EDJ, "main_layout"); + elm_object_content_set(layout, genlist); + evas_object_show(layout); #endif SCLOptionWindowType type = find_option_window_type(naviframe); @@ -1355,7 +1360,14 @@ static Evas_Object* create_option_language_view(Evas_Object *naviframe) evas_object_show(genlist); - naviframe_item_push(naviframe, LANGUAGE, genlist, _pop_cb, naviframe, language_selection_finished_cb, naviframe); + Evas_Object *content; +#ifdef _COMMON + content = layout; +#else + content = genlist; +#endif + + naviframe_item_push(naviframe, LANGUAGE, content, _pop_cb, naviframe, language_selection_finished_cb, naviframe); return genlist; } @@ -1738,7 +1750,6 @@ option_window_created(Evas_Object *window, SCLOptionWindowType type) #ifdef _TV option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, mlayout, NULL, NULL, navi_back_cb, NULL, EINA_FALSE); - #else Evas_Object *list = create_option_main_view(conformant, naviframe, type); option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, list, NULL, NULL, navi_back_cb, NULL); -- 2.7.4