forked from enlightenment/enventor
update warning button text.
save/yes/no -> save/discard/cancel
This commit is contained in:
parent
8d51516705
commit
9c0cf02039
1
NEWS
1
NEWS
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue