const char *type = evas_object_type_get(newfocus);
if ((type) && (!strcmp(type, "elm_widget")))
type = elm_object_widget_type_get(newfocus);
- printf("elm_object_focus(%p) %s\n", newfocus, type);
- elm_object_focus(newfocus);
+ printf("elm_object_focus_set(%p, EINA_TRUE) %s\n", newfocus, type);
+ elm_object_focus_set(newfocus, EINA_TRUE);
}
static void
Evas_Object *newfocus = (Evas_Object *)edje_object_part_object_get(ed, "sky");
const char *type = evas_object_type_get(newfocus);
- printf("evas_object_focus_set(%p, 1) %s\n", newfocus, type);
+ printf("evas_object_focus_set(%p, EINA_TRUE) %s\n", newfocus, type);
evas_object_focus_set(newfocus, EINA_TRUE);;
}
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_entry_set(en, "Scrolled Entry that should get focus");
- elm_entry_single_line_set(en, 1);
+ elm_object_text_set(en, "Scrolled Entry that should get focus");
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
bt1 = bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 1");
- elm_object_content_part_set(ly, "element1", bt);
+ elm_object_part_content_set(ly, "element1", bt);
en = elm_entry_add(ly);
elm_entry_scrollable_set(en, EINA_TRUE);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_entry_set(en, "Scrolled Entry that should get focus");
- elm_entry_single_line_set(en, 1);
- elm_object_content_part_set(ly, "element2", en);
+ elm_object_text_set(en, "Scrolled Entry that should get focus");
+ elm_entry_single_line_set(en, EINA_TRUE);
+ elm_object_part_content_set(ly, "element2", en);
bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 2");
- elm_object_content_part_set(ly, "element3", bt);
+ elm_object_part_content_set(ly, "element3", bt);
bt = elm_button_add(PARENT);
elm_object_text_set(bt, "Give focus to layout");