From bcae8801b70c694360dedb2f716d8669b2eef65a Mon Sep 17 00:00:00 2001 From: jomui Date: Thu, 30 Nov 2017 15:16:29 +0900 Subject: [PATCH] fix UC for kantM Signed-off-by: jomui Change-Id: Ic85bdbeb8d3d024e6d52a2cb278b53a839132b9d --- heremaps-uc/src/heremaps-uc.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/heremaps-uc/src/heremaps-uc.c b/heremaps-uc/src/heremaps-uc.c index a10dae1..38a02dc 100644 --- a/heremaps-uc/src/heremaps-uc.c +++ b/heremaps-uc/src/heremaps-uc.c @@ -190,31 +190,18 @@ static Evas_Object *create_popup_tv(Evas_Object *layout, heremaps_uc_app_data *a LS_FUNC_ENTER /* popup */ - Evas_Object *popup = elm_popup_add(layout); + Evas_Object *popup = elm_popup_add(ad->win_main); eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, back_btn_cb, ad); evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_object_part_text_set(popup, "title,text", P_("IDS_POSITIONING_CONSENT_TITLE")); - Evas_Object *box = elm_box_add(popup); - elm_box_align_set(box, 0.5, 0); - elm_object_part_content_set(popup, "elm.swallow.content", box); - evas_object_show(box); - char buf[4096] = {0}; char *str1 = P_("IDS_POSITIONING_CONSENT_BODY"); char *str2 = "http://here.com/terms/service-terms"; char *str3 = "http://here.com/privacy/privacy-policy"; snprintf(buf, 4096, str1, str2, str3); char *text = strdup(buf); - - Evas_Object *entry = elm_entry_add(box); - evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, 0.0); - evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL); - elm_entry_editable_set(entry, EINA_FALSE); - elm_object_part_text_set(entry, "elm.text", text); - elm_entry_text_style_user_push(entry, "DEFAULT='align=center'"); - elm_box_pack_end(box, entry); - evas_object_show(entry); + elm_object_text_set(popup, text); /* Disagree button */ Evas_Object *disagree_btn = elm_button_add(popup); -- 2.34.1