elm_box_pack_end(bx, bx2);
evas_object_show(bx2);
- // FIXME: HACK! not exposed! (should expose some later?)
- elm_widget_focus_set(en, 1);
-
+ // FIXME: not exported
+ elm_widget_focus_set(win, 1);
evas_object_show(win);
}
elm_box_pack_end(bx, bx2);
evas_object_show(bx2);
- // FIXME: HACK! not exposed! (should expose some later?)
- elm_widget_focus_set(en, 1);
-
evas_object_resize(win, 320, 300);
+ // FIXME: not exported
+ elm_widget_focus_set(win, 1);
evas_object_show(win);
}
elm_box_pack_end(bx, bx2);
evas_object_show(bx2);
- // FIXME: HACK! not exposed! (should expose some later?)
- elm_widget_focus_set(np, 1);
-
evas_object_resize(win, 320, 300);
+ // FIXME: not exported
+ elm_widget_focus_set(win, 1);
evas_object_show(win);
}
_on_focus_hook(void *data, Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
- elm_widget_focus_set(wd->entry, 1);
+ elm_widget_focus_steal(wd->entry);
}
static char *
{
Smart_Data *sd = data;
Evas_Object *op, *op2;
-
- op = elm_widget_parent_get(obj);
- while (op)
- {
- op2 = elm_widget_parent_get(op);
- if (!op2) break;
- op = op2;
- }
- printf("focus off %p\n", op);
- if (op) elm_widget_focused_object_clear(op);
- printf("focus %p\n", sd->obj);
- elm_widget_focus_set(sd->obj, 0);
+
+ elm_widget_focus_steal(sd->obj);
}
/* externally accessible functions */