void
test_naviframe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *nf, *btn, *content;
+ Evas_Object *win, *nf, *btn, *content;
Elm_Object_Item *it;
- win = elm_win_add(NULL, "naviframe", ELM_WIN_BASIC);
- elm_win_title_set(win, "Naviframe");
+ win = elm_win_util_standard_add("naviframe", "Naviframe");
elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_show(bg);
-
nf = elm_naviframe_add(win);
- elm_win_resize_object_add(win, nf);
evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, nf);
evas_object_show(nf);
evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);