From: Pekka Kahkonen Date: Mon, 13 May 2013 11:20:16 +0000 (+0300) Subject: fix "save button shows in the top left corner with create memo page" X-Git-Tag: submit/tizen_2.1/20130515.031315~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e348a9d4f0f6f27b2550527b91f0953cd0bdff6a;p=apps%2Fhome%2Fmemo.git fix "save button shows in the top left corner with create memo page" fixing TDIS-4498 RSA bug Change-Id: If97fa065f792e6ad8b3f98faf2ac7d98f1dad5ca --- diff --git a/src/memo_edit.c b/src/memo_edit.c index 1d13f9a..d7ec25d 100644 --- a/src/memo_edit.c +++ b/src/memo_edit.c @@ -210,11 +210,18 @@ void *memo_load_edit_view(appdata *ad) ev->r_btn = elm_button_create(ev->navigator, MEMO_I18N_CANCEL, _on_right_btn_clicked, ev); elm_object_style_set(ev->r_btn, "naviframe/back_btn/default"); - elm_object_item_part_content_set(navi_it, "title_prev_btn", ev->r_btn); + elm_object_item_part_content_set(navi_it, "title_right_btn", ev->r_btn); ev->l_btn = elm_button_create(ev->navigator, MEMO_I18N_SAVE, _on_left_btn_clicked, ev); - elm_object_style_set(ev->l_btn, "naviframe/toolbar/default"); - elm_object_item_part_content_set(navi_it, "title_toolbar_button1", ev->l_btn); + elm_object_style_set(ev->l_btn, "naviframe/title_icon"); + + Evas_Object *icon = elm_icon_add(ev->l_btn); + elm_image_file_set(icon, "usr/apps/org.tizen.memo/res/images/01_header_icon_add.png", NULL); + evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1 , 1); + elm_image_resizable_set(icon, EINA_TRUE, EINA_TRUE); + elm_object_content_set(ev->l_btn, icon); + + elm_object_item_part_content_set(navi_it, "title_left_btn", ev->l_btn); /*show the toolbar*/ elm_object_item_signal_emit(navi_it, "elm,state,sip,shown", "");