static Evas_Object *main_win = NULL;
-static void
-_win_focused_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
-{
- ecore_main_loop_quit();
-}
-
/**
* @addtogroup elm_object
* @{
UTC_ELM_INIT();
elm_config_accel_preference_set("3d");
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_smart_callback_add(main_win, "focused", _win_focused_cb, NULL);
+ ecore_evas_focus_set(ecore_evas_ecore_evas_get(evas_object_evas_get(main_win)), EINA_TRUE);
evas_object_show(main_win);
- ecore_main_loop_begin();
}
static void