bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0c1c2711f323309c051f35ce6b9376bcd4eb2c03

commit 0c1c2711f323309c051f35ce6b9376bcd4eb2c03
Author: Marcel Hollerbach <[email protected]>
Date:   Mon Dec 12 19:10:19 2016 +0100

    efl_ui_focus_manager: more debug information
---
 src/lib/elementary/efl_ui_focus_manager.c  | 13 +++++++++++++
 src/lib/elementary/efl_ui_focus_manager.eo |  2 ++
 2 files changed, 15 insertions(+)

diff --git a/src/lib/elementary/efl_ui_focus_manager.c 
b/src/lib/elementary/efl_ui_focus_manager.c
index c640450..a3c390e 100644
--- a/src/lib/elementary/efl_ui_focus_manager.c
+++ b/src/lib/elementary/efl_ui_focus_manager.c
@@ -1216,6 +1216,19 @@ _efl_ui_focus_manager_fetch(Eo *obj, 
Efl_Ui_Focus_Manager_Data *pd, Efl_Ui_Focus
    res->down = DIR_CLONE(EFL_UI_FOCUS_DIRECTION_DOWN);
    res->next = _next(n)->focusable;
    res->prev = _prev(n)->focusable;
+   switch(n->type)
+     {
+        case NODE_TYPE_LISTENER:
+          res->type = "listener";
+        break;
+        case NODE_TYPE_ONLY_LOGICAL:
+          res->type = "logical";
+        break;
+        case NODE_TYPE_NORMAL:
+          res->type = "normal";
+        break;
+     }
+   res->parent = T(n).parent->focusable;
    res->redirect = n->type == NODE_TYPE_LISTENER ? n->data.listener.manager : 
NULL;
 #undef DIR_CLONE
 
diff --git a/src/lib/elementary/efl_ui_focus_manager.eo 
b/src/lib/elementary/efl_ui_focus_manager.eo
index e69c179..c110284 100644
--- a/src/lib/elementary/efl_ui_focus_manager.eo
+++ b/src/lib/elementary/efl_ui_focus_manager.eo
@@ -16,6 +16,8 @@ struct Efl.Ui.Focus.Relations{
     down : list<Efl.Ui.Focus.Object>;
     next : Efl.Ui.Focus.Object;
     prev : Efl.Ui.Focus.Object;
+    type : string;
+    parent : Efl.Ui.Focus.Object;
     redirect : Efl.Ui.Focus.Manager;
 }
 

-- 


Reply via email to