From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- libraries/evas/src/lib/canvas/evas_focus.c | 61 ------------------------------ 1 file changed, 61 deletions(-) delete mode 100644 libraries/evas/src/lib/canvas/evas_focus.c (limited to 'libraries/evas/src/lib/canvas/evas_focus.c') diff --git a/libraries/evas/src/lib/canvas/evas_focus.c b/libraries/evas/src/lib/canvas/evas_focus.c deleted file mode 100644 index 29da7e7..0000000 --- a/libraries/evas/src/lib/canvas/evas_focus.c +++ /dev/null @@ -1,61 +0,0 @@ -#include "evas_common.h" -#include "evas_private.h" - -/* private calls */ - -/* local calls */ - -/* public calls */ - -EAPI void -evas_object_focus_set(Evas_Object *obj, Eina_Bool focus) -{ - int event_id = 0; - MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); - return; - MAGIC_CHECK_END(); - - _evas_object_event_new(); - - event_id = _evas_event_counter; - if (focus) - { - if (obj->focused) goto end; - if (obj->layer->evas->focused) - evas_object_focus_set(obj->layer->evas->focused, 0); - obj->focused = 1; - obj->layer->evas->focused = obj; - evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_IN, NULL, event_id); - evas_event_callback_call(obj->layer->evas, - EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN, obj); - } - else - { - if (!obj->focused) goto end; - obj->focused = 0; - obj->layer->evas->focused = NULL; - evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_OUT, NULL, event_id); - evas_event_callback_call(obj->layer->evas, - EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT, obj); - } - end: - _evas_post_event_callback_call(obj->layer->evas); -} - -EAPI Eina_Bool -evas_object_focus_get(const Evas_Object *obj) -{ - MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); - return 0; - MAGIC_CHECK_END(); - return obj->focused; -} - -EAPI Evas_Object * -evas_focus_get(const Evas *e) -{ - MAGIC_CHECK(e, Evas, MAGIC_EVAS); - return NULL; - MAGIC_CHECK_END(); - return e->focused; -} -- cgit v1.1