{
Evas_Object *bt, *bt2, *ic, *nf = data;
char buf[PATH_MAX];
- Elm_Naviframe_Item *it;
+ Elm_Object_Item *it;
bt = elm_button_add(nf);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
ic = elm_icon_add(nf);
- snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png", PACKAGE_DATA_DIR);
+ snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_button_icon_set(bt, ic);
elm_object_text_set(bt2, "Naviframe Test");
ic = elm_icon_add(nf);
- snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
+ snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt,
bt2,
NULL);
- elm_naviframe_item_subtitle_label_set(it, "Here is sub-title part!");
- elm_naviframe_item_icon_set(it, ic);
+ elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
+ elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
evas_object_smart_callback_add(bt2, "clicked", _title_visible, it);
}
{
Evas_Object *bt, *bt2, *bt3, *ic, *nf = data;
char buf[PATH_MAX];
- Elm_Naviframe_Item *it;
+ Elm_Object_Item *it;
bt = elm_button_add(nf);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_text_set(bt3, "Naviframe Test");
ic = elm_icon_add(nf);
- snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
+ snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt2,
bt3,
NULL);
- elm_naviframe_item_subtitle_label_set(it, "Here is sub-title part!");
- elm_naviframe_item_icon_set(it, ic);
+ elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
+ elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
}
void
{
Evas_Object *bt, *bt2, *ic, *nf = data;
char buf[PATH_MAX];
- Elm_Naviframe_Item *it;
+ Elm_Object_Item *it;
bt = elm_button_add(nf);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_text_set(bt2, "Naviframe Test");
ic = elm_icon_add(nf);
- snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png", PACKAGE_DATA_DIR);
+ snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_button_icon_set(bt, ic);
bt,
bt2,
NULL);
- elm_naviframe_item_subtitle_label_set(it, "Here is sub-title part!");
+ elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
}
void