Evas_Object *check = elm_check_add(elm_object_parent_widget_get(box));
evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(check, 0.0, 0.0);
- elm_check_label_set(check, label);
+ elm_object_text_set(check, label);
elm_check_state_pointer_set(check, checked);
elm_box_pack_end(box, check);
evas_object_show(check);
win = elm_win_add(NULL, "transit", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit Example");
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
- elm_win_autodel_set(win, 1);
+ elm_win_autodel_set(win, EINA_TRUE);
/* add a scalable white background to this window */
bg = elm_bg_add(win);
/* add an object that we are going to play with */
obj = elm_button_add(win);
- elm_button_label_set(obj, "Transformed object!");
+ elm_object_text_set(obj, "Transformed object!");
icon = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_07.png", PACKAGE_DATA_DIR);
elm_icon_file_set(icon, buf, NULL);
- elm_button_icon_set(obj, icon);
+ elm_object_part_content_set(obj, "icon", icon);
evas_object_move(obj, 160, 60);
evas_object_resize(obj, 250, 100);
evas_object_show(obj);
/* add another object that we are going to play with */
obj = elm_button_add(win);
- elm_button_label_set(obj, "Another object!");
+ elm_object_text_set(obj, "Another object!");
icon = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_08.png", PACKAGE_DATA_DIR);
elm_icon_file_set(icon, buf, NULL);
- elm_button_icon_set(obj, icon);
+ elm_object_part_content_set(obj, "icon", icon);
evas_object_move(obj, 160, 60);
evas_object_resize(obj, 250, 100);
btn = elm_button_add(win);
evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_button_label_set(btn, "Transit!");
+ elm_object_text_set(btn, "Transit!");
elm_box_pack_end(box, btn);
evas_object_show(btn);