efl_ui_focus_manager: more debug information
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Mon, 12 Dec 2016 18:10:19 +0000 (19:10 +0100)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Thu, 20 Apr 2017 12:38:57 +0000 (14:38 +0200)
src/lib/elementary/efl_ui_focus_manager.c
src/lib/elementary/efl_ui_focus_manager.eo

index c640450..a3c390e 100644 (file)
@@ -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
 
index e69c179..c110284 100644 (file)
@@ -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;
 }