update warning button text.

save/yes/no -> save/discard/cancel
This commit is contained in:
ChunEon Park 2015-06-24 14:43:39 +09:00
parent 8d51516705
commit 9c0cf02039
2 changed files with 7 additions and 5 deletions

1
NEWS
View File

@ -32,6 +32,7 @@ Improvements:
* Support toggle effect on Tools GUI.
* Store/Restore editor split view status.
* Change live view scaling to zoom in/out concept.
* Adjust live view zoom range. (0.1 ~ 10.0)
Fixes:
* Fix the compatibility to eo syntax change.

View File

@ -184,7 +184,7 @@ warning_open(menu_data *md, Evas_Smart_Cb yes_cb, Evas_Smart_Cb save_cb)
elm_object_part_text_set(layout, "elm.text.desc",
"Without save, you will lose last changes!");
elm_object_part_text_set(layout, "elm.text.question",
"Are you sure you want to do this?");
"Will you save this changes?");
elm_object_signal_callback_add(layout, "elm,state,dismiss,done", "",
warning_dismiss_done, md);
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@ -201,18 +201,19 @@ warning_open(menu_data *md, Evas_Smart_Cb yes_cb, Evas_Smart_Cb save_cb)
elm_object_focus_set(btn, EINA_TRUE);
elm_object_part_content_set(layout, "elm.swallow.btn1", btn);
//Yes Button
//Discard Button
btn = elm_button_add(layout);
elm_object_text_set(btn, "Yes");
elm_object_text_set(btn, "Discard");
evas_object_smart_callback_add(btn, "clicked", yes_cb, md);
elm_object_part_content_set(layout, "elm.swallow.btn2", btn);
//No Button
//Cancel Button
btn = elm_button_add(layout);
elm_object_text_set(btn, "No");
elm_object_text_set(btn, "Cancel");
evas_object_smart_callback_add(btn, "clicked", warning_no_btn_cb, md);
elm_object_part_content_set(layout, "elm.swallow.btn3", btn);
md->warning_layout = layout;
menu_activate_request();
}